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

Additional inline docs and tests #24

Merged
merged 3 commits into from
Oct 26, 2022
Merged

Additional inline docs and tests #24

merged 3 commits into from
Oct 26, 2022

Conversation

cmungall
Copy link
Member

No description provided.

An individual mapping between a prefix and a namespace
An individual mapping between a prefix and a namespace.

A PrefixExpansion corresponds to a SHACL PrefixDeclaration (http://www.w3.org/ns/shacl#PrefixDeclaration)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you elaborate on what this is, since the link goes to a page with no information?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From https://www.w3.org/TR/shacl/#dfn-prefix-declarations:

The values of the property sh:declare are IRIs or blank nodes, and these values are called prefix declarations. The SHACL vocabulary includes the class sh:PrefixDeclaration as type for such prefix declarations although no rdf:type triple is required for them. Prefix declarations have exactly one value for the property sh:prefix. The values of sh:prefix are literals of datatype xsd:string. Prefix declarations have exactly one value for the property sh:namespace. The values of sh:namespace are literals of datatype xsd:anyURI. Such a pair of values specifies a single mapping of a prefix to a namespace.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a semantic URL like the URLs in RDF, RDFS, OWL, etc

You can fetch via curl

  • curl --header "Accept: text/turtle" -L -s http://www.w3.org/ns/shacl\#PrefixDeclaration

And the URL resolves to a page that contains a link for humans... not ideal. But anyway I think intended users of this library should be familiar with this

@cmungall cmungall merged commit b53947b into main Oct 26, 2022
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

Successfully merging this pull request may close these issues.

4 participants