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

sttl.rdfxml.main.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
#
# select top level terms ?in
# URI
# Top level bnodes (not object of a property)
#
template st:main(?in) {
   if (bound(?t), 
        st:call-template(st:resourcetype, ?in, ?t),
        st:call-template(st:resource, ?in))
    
   ; separator = "\n\n"
}
where {
   select distinct ?in ?t where {
     bind (st:focus() as ?in)
     ?in ?p ?y
     
     filter (isURI(?in) || ! exists { ?x ?q ?in } )
     
     optional {
        select ?in ?t where {
            ?in a ?t  
            filter (! isBlank(?t))
        } limit 1
     }
     
   }
   order by ?in
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy