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

webapp.data.query.dbpedia.dbpedia.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.

The newest version!
prefix foaf: 
prefix o:    
prefix w:    
prefix r:    
prefix p:    

construct  {
  ?r a foaf:Person
  ?r rdfs:label ?label 
  ?r ?qq ?s        ?s rdfs:label ?ls
  ?r p:naissance ?b ?r p:décès ?d
  ?r o:thumbnail  ?ic
}
where {

service  {

  ?r rdfs:label ?label . filter(lang(?label) = 'en')
  
  optional { ?r p:naissance ?b . ?r p:décès ?d }
  
  optional { ?r o:thumbnail  ?ic  }
  
  optional {
    ?r ?q ?s 
    
    filter(
       ?q = o:spouse || ?q = o:child
    || ?q = p:mère   || ?q = o:mother
    || ?q = p:père   || ?q = o:father
    || ?q = p:successeur   || ?q = o:successor 
    || ?q = p:prédécesseur || ?q = o:predecessor
    ) 
    
    filter isURI(?s) . ?s rdfs:label ?ls . filter(lang(?ls) = 'en') 
  }
	      
 
}

bind (if (?q = p:successeur,   o:successor,
      if (?q = p:prédécesseur, o:predecessor,
      if (?q = p:mère, o:mother,
      if (?q = p:père, o:father,
      ?q)))) 
      as ?qq)
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy