webapp.data.query.halquery.rq Maven / Gradle / Ivy
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 . ?t ?q ?x
}
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 }
}
union
{ ?x ?q ?uri
optional { ?x foaf:name|skos:prefLabel|skos:altLabel ?label ; ?pname ?label }
optional { filter isBlank(?x) ?t ?q ?x filter isURI(?t) }
}
}
#limit 1000
}
}
#pragma { kg:kgram kg:detail true }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy