Open marvinm2 opened 3 years ago
You can also list this as part of the RDF itself using Jerven's proposal:
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] sh:declare [ sh:prefix "dc" ; sh:namespace "http://purl.org/dc/elements/1.1/"^^xsd:anyURI ] .
[] sh:declare [ sh:prefix "cas" ; sh:namespace "https://identifiers.org/cas/"^^xsd:anyURI ] .
[] sh:declare [ sh:prefix "wprdf" ; sh:namespace "http://rdf.wikipathways.org/"^^xsd:anyURI ] .
[] sh:declare [ sh:prefix "prov" ; sh:namespace "http://www.w3.org/ns/prov#"^^xsd:anyURI ] .
[] sh:declare [ sh:prefix "foaf" ; sh:namespace "http://xmlns.com/foaf/0.1/"^^xsd:anyURI ] .
[] sh:declare [ sh:prefix "hmdb" ; sh:namespace "https://identifiers.org/hmdb/"^^xsd:anyURI ] .
Make that table used in the code, for writing prefixes