Skip to content

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

@Zakaria29041996

Description

@Zakaria29041996

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    VocabulariesFor issues with the RDF files that the WG maintains

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions