sttl.datashape.main.start.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.
#
# Data Shape Validator
# http://w3c.github.io/data-shapes/shacl/
#
# main: shapes with targets
# core: shape constraints (property, path, constraint, and, or, not, closed)
# property: property predicate constraint
# path: property path constraint
# constraint: node constraint
#
# Olivier Corby - Inria I3S - 2016
#
prefix sh:
template st:start {
?suc
}
where {
bind (st:visit(st:start, st:trace) as ?vis)
bind (coalesce(st:get(st:shape), st:shape) as ?shape)
bind (sh:starter() as ?st)
#bind (st:call-template(sh:sibling, ?shape) as ?sib)
#bind (st:apply-templates(?shape) as ?suc) # 13.159 sec
bind (xt:focus(?shape, sh:sibling()) as ?sib)
bind (sh:target(?shape) as ?suc) # 12.228 sec
bind (sh:success(?suc) as ?b)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy