sttl.navlab.descperson.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-core Show documentation
Show all versions of corese-core Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
prefix p:
prefix o:
template st:descperson(?r) {
st:call-template(st:desctriple,
st:number(), ?r, ?p, ?tt, if (?href, st:href, st:property))
}
where {
bind (unnest(us:person()) as (?p, ?title, ?titleen))
bind (if (?p in (o:wikipedia, o:dbpedia), true, false) as ?href)
filter ( ?href || exists { ?r ?p ?v } )
bind (if (st:get(st:lang, "en"), ?titleen, ?title) as ?tt)
}
#
# Properties to be displayed for Person (see profile.rq)
#
function us:define(){
let (?m = us:definition(st:person)){
if (xt:size(?m) = 0) { us:person() } else { ?m }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy