
webapp.data.query.halquery.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-server Show documentation
Show all versions of corese-server Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
The newest version!
#
#
#
prefix skos:
prefix foaf:
prefix dc:
@bind kg:filter
construct {
?uri ?p ?y . ?x ?q ?uri .
?y ?pname ?label . ?x ?pname ?label .
?y ?q ?z
}
where {
bind (st:get(st:uri) as ?uri)
service {
select * where {
{ ?uri ?p ?y
optional { ?y foaf:name|skos:prefLabel|skos:altLabel|dc:title ?label ; ?pname ?label }
optional { filter isBlank(?y) ?y ?q ?z filter (! isBlank(?z)) }
}
union
{ ?x ?q ?uri filter isURI(?x)
optional { ?x foaf:name|skos:prefLabel|skos:altLabel ?label ; ?pname ?label }
}
}
limit 10000
}
bind (us:link(?y) as ?a)
bind (us:link(?x) as ?b)
}
function us:link(?s) {
if (isURI(?s)) {
st:setlink(?s, st:hlink(?s))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy