ament.OntologyBundle.1.0.2.source-code.replaceBlankShaclPrefix.update Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OntologyBundle Show documentation
Show all versions of OntologyBundle Show documentation
A Gradle plugin to package (or bundle) an OWL ontology in a jar
to make it easy to use in Java-based software projects.
Copyright © 2023, 2024 RTX BBN Technologies
prefix sh:
delete {
?blankDatatypeBearer ?incomingPredicate ?blankPrefixDeclaration .
?blankPrefixDeclaration a sh:PrefixDeclaration ;
sh:namespace ?namespace ;
sh:prefix ?prefix .
} insert {
?blankDatatypeBearer ?incomingPredicate ?prefixDeclarationIri .
?prefixDeclarationIri a sh:PrefixDeclaration ;
sh:namespace ?namespace ;
sh:prefix ?prefix .
} where {
?blankPrefixDeclaration a sh:PrefixDeclaration ;
sh:namespace ?namespace ;
sh:prefix ?prefix .
filter ( isBlank(?blankPrefixDeclaration) && !isBlank(?namespace) && !isBlank(?prefix) )
bind (?_fillNS as ?fillNS)
bind ( concat(str(?namespace), "\n", str(?prefix)) as ?toHash )
bind ( iri(concat(str(?fillNS), "z", sha256(?toHash))) as ?prefixDeclarationIri )
}