sttl.datashape.main.sibling.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.
#
# Store sibling shapes of qualified shapes
#
template sh:sibling(?shape) {
if (bound(?qsh), st:cset(sh:sibling, ?qsh, ?list), true)
}
where {
graph ?shape {
select ?qsh (aggregate(xt:list(?sibling, ?path)) as ?list)
where {
select distinct ?qsh ?sibling ?path
where {
?root sh:property [ sh:qualifiedValueShape ?qsh ];
sh:property [ sh:qualifiedValueShape ?sibling ; sh:path ?path ]
filter (?sibling != ?qsh)
}
}
group by ?qsh
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy