Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unify type constraints generated by SheXer #2

Open
patrickwestphal opened this issue Apr 24, 2024 · 0 comments
Open

Unify type constraints generated by SheXer #2

patrickwestphal opened this issue Apr 24, 2024 · 0 comments
Assignees

Comments

@patrickwestphal
Copy link
Member

SheXer generates SHACL shapes which are conflicting w.r.t. the allowed type information of a resource.
The following shape excerpt is an example, a resource shall only be of type <https://schema.coypu.org/global#City>, but at the same time also only of type <http://www.wikidata.org/entity/Q515> which can never be true:

:City a sh:NodeShape ;
    sh:property
        ...
        [ a sh:PropertyShape ;
            sh:in ( <https://schema.coypu.org/global#City> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        ...
        [ a sh:PropertyShape ;
            sh:in ( <http://www.wikidata.org/entity/Q515> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:path rdf:type ] ;
    sh:targetClass <https://schema.coypu.org/global#City> .

To remedy this, need to be unified and the sh:maxCount and sh:minCount constraints need to be dropped.

@patrickwestphal patrickwestphal self-assigned this Apr 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant