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

sttl.json.body.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
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