sttl.spin.query.path.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.
#
# Given a RDF graph which contains a SPIN Query
# This query search the triples and return a string in turtle syntax
# Olivier Corby, Wimmics Inria I3S, 2013
#
prefix sp: .
template {
?x " " ?p " "
if (bound(?v), concat(":: ", ?v, " "), "")
?y " ."
}
where {
?in a sp:TriplePath ;
sp:subject ?x ;
sp:path ?p ;
sp:object ?y
optional { ?in sp:pathVariable ?v }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy