sttl.datashape.path.pattern.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-core Show documentation
Show all versions of corese-core Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
prefix sh:
template sh:pattern (?shape, ?sh, ?vis, ?s, ?p, ?exp, ?o) {
sh:safe(?shape, ?sh, ?suc)
}
where {
graph ?shape {
?sh sh:pattern ?exp
optional { ?sh sh:flags ?flag }
}
values ?o { unnest(sh:path(?shape, ?s, ?p)) }
bind (
coalesce(
! isBlank(?o) &&
if (bound (?flag), regex(?o, ?exp, ?flag), regex(?o, ?exp)),
false)
as ?suc )
bind (st:report(sh:pattern, ?sh, ?shape, ?s, ?p, ?o, ?suc, ?vis) as ?b)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy