Semantic Web

Réponses

1. Propriété de TBL

<http://dbpedia.org/resource/WorldWideWeb> <http://dbpedia.org/ontology/developer> <http://dbpedia.org/resource/Tim_Berners-Lee> .
<http://dbpedia.org/resource/CERN_httpd> <http://dbpedia.org/ontology/author> <http://dbpedia.org/resource/Tim_Berners-Lee> .

NB. Identification des préfixes:

prefix dbo: <https://dbpedia.org/ontology/>
prefix dbr: <https://dbpedia.org/resource/>

Requête SPARQL:

prefix dbo: <http://dbpedia.org/ontology/>
prefix dbr: <http://dbpedia.org/resource/>
prefix dbp: <http://dbpedia.org/property/>
select * 
where { { ?what dbo:developer dbr:Tim_Berners-Lee . } 
union   { ?what dbp:authors dbr:Tim_Berners-Lee .   } }

2. is developper or author of ...

Ajout des types:

<http://dbpedia.org/resource/Tim_Berners-Lee> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Person> .
<http://dbpedia.org/resource/WorldWideWeb> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Work> .
<http://dbpedia.org/ontology/developer> <http://www.w3.org/2000/01/rdf-schema#range> <http://dbpedia.org/ontology/Agent> .

Représentation RDF:

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:ns0="http://dbpedia.org/ontology/"
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  <rdf:Description rdf:about="http://dbpedia.org/resource/WorldWideWeb">
    <ns0:developer rdf:resource="http://dbpedia.org/resource/Tim_Berners-Lee"/>
    <rdf:type rdf:resource="http://dbpedia.org/ontology/Work"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://dbpedia.org/resource/CERN_httpd">
    <ns0:author rdf:resource="http://dbpedia.org/resource/Tim_Berners-Lee"/>
  </rdf:Description>
  <ns0:Person rdf:about="http://dbpedia.org/resource/Tim_Berners-Lee">
  </ns0:Person>
  <rdf:Description rdf:about="http://dbpedia.org/ontology/developer">
    <rdfs:range rdf:resource="http://dbpedia.org/ontology/Agent"/>
  </rdf:Description>
</rdf:RDF>
  1. Propriété de dbo:developper

NB. le domaine est owl:Thing

retour