sttl.json.body.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.
template st:body {
st:apply-templates(?in)
; separator = concat(",", st:nl(), st:nl())
}
where {
select distinct ?in where {
bind (st:focus() as ?in)
?in ?p ?y
filter (
isURI(?in) ||
(
# skip list
(?p not in (rdf:first, rdf:rest) &&
! (?p = rdf:type && ?y = rdf:List))
# except nested list
|| exists { ?x rdf:first ?in }
# except top level list
|| not exists { ?x ?q ?in }
))
}
order by ?in
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy