sttl.navlab.profile.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:profile {
}
where {}
function us:format(?name) {
st:getFormat("navlab", ?name)
}
#
# Get the ?q = st:person st:param property from profile.ttl
# Return properties to be displayed
# st:get(st:definition) return the profile.ttl RDF graph
#
function us:definition(?q){
st:set(st:currentProperty, ?q) ;
let (?m =
select ?p ?title ?titleen where {
bind (st:get(st:currentProperty) as ?q)
bind (st:get(st:definition) as ?def)
graph ?def {
[] ?q ?list
?list rdf:rest*/rdf:first (?p ?title ?titleen)
}
})
{ ?m }
}
#
# Default properties to be displayed for Person
#
function us:person(){
let (?m =
select * where {
values (?p ?title ?titleen) {
(p:dateDeNaissance "Naissance" "Birth")
(p:dateDeDécès "Décès" "Death")
(o:predecessor "Prédécesseur" "Predecessor")
(o:successor "Successeur" "Successor")
(o:father "Père" "Father")
(o:mother "Mère" "Mother")
(o:spouse "Conjoints" "Spouse")
(o:child "Enfants" "Children")
(o:residence "Résidence" "Residence")
(o:memberOf "Membre" "Member")
(o:bandMember "Membre" "Member")
(o:starring "Acteur" "Actor")
(o:director "Metteur en scène" "Director")
(rdfs:comment "Résumé" "Abstract")
(o:wikiPageRedirects "Voir aussi" "See Also")
(o:wikipedia "Wikipedia" "Wikipedia")
(o:dbpedia "DBpedia" "DBpedia")
}
})
{ ?m }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy