Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Incorrect Data Type for sh:namespace in SHACL Declaration #89

Open
Zakaria29041996 opened this issue Dec 17, 2024 · 0 comments
Open

Incorrect Data Type for sh:namespace in SHACL Declaration #89

Zakaria29041996 opened this issue Dec 17, 2024 · 0 comments

Comments

@Zakaria29041996
Copy link

Description:

In the SHACL (Shapes Constraint Language) RDF ontology, the sh:declare statement currently specifies the sh:namespace as a plain string:

sh:declare [
    sh:prefix "sh" ;
    sh:namespace "http://www.w3.org/ns/shacl#" ;
] ;

This can lead to issues with certain reasoners, especially when the SHACL ontology is indirectly imported. Some reasoners expect the sh:namespace to be explicitly typed as xsd:anyURI for correct interpretation.

Proposed Change:

To ensure compatibility with reasoners and avoid errors, the sh:namespace should be explicitly typed as xsd:anyURI:

sh:declare [
    sh:prefix "sh" ;
    sh:namespace "http://www.w3.org/ns/shacl#"^^xsd:anyURI ;
] ;

This change will help resolve the issues encountered with reasoners that rely on type checking for URI values.

@Zakaria29041996 Zakaria29041996 changed the title Title: Incorrect Data Type for sh:namespace in SHACL Declaration Incorrect Data Type for sh:namespace in SHACL Declaration Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant