All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttl.spin.query.starpath.rq Maven / Gradle / Ivy

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

There is a newer version: 4.6.1
Show newest version
#
# 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 {
  "(" ?p ")" 
  if (bound(?min) && ?min = 1, "+", 
  if (bound(?max) && ?max = -1, "?", "*"))
}
where {
  ?in a sp:ModPath ;
    sp:subPath ?p 
  optional { ?in sp:modMin ?min }
  optional { ?in sp:modMax ?max }
}









© 2015 - 2025 Weber Informatics LLC | Privacy Policy