Dataset 10046

From Data-gov Wiki

Jump to: navigation, search
Metadata
RDF data
Links
  • Demos:
NOTES: .
Infobox (User Generated Dataset) edit with form
  • name: White House People





Contents

Sources

Sample Data

PREFIX swivt:  <http://semantic-mediawiki.org/swivt/1.0#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
PREFIX foaf: <http://xmlns.com/foaf/0.1/> 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> 


<swivt:Subject rdf:about="http://data-gov.tw.rpi.edu/vocab/Austan_Goolsbee">
  <rdfs:label>Austan Goolsbee</rdfs:label>
  <swivt:page rdf:resource="http://data-gov.tw.rpi.edu/wiki/Austan_Goolsbee"/>
  <rdfs:isDefinedBy rdf:resource="http://data-gov.tw.rpi.edu/vocab.php?instance=Austan_Goolsbee"/>
  <rdf:type rdf:resource="http://data-gov.tw.rpi.edu/vocab/c/White_House_Visitee"/>
  <foaf:firstName>AUSTAN</foaf:firstName>
  <foaf:lastName>GOOLSBEE</foaf:lastName>
  <owl:sameAs rdf:resource="http://dbpedia.org/resource/Austan_Goolsbee"/>
  <owl:sameAs rdf:resource="http://rdf.freebase.com/rdf/en.austan_goolsbee"/>
</swivt:Subject>

<swivt:Subject rdf:about="http://data-gov.tw.rpi.edu/vocab/Barack_Obama">
   <rdfs:label>Barack Obama</rdfs:label>
   <swivt:page rdf:resource="http://data-gov.tw.rpi.edu/wiki/Barack_Obama"/>
   <rdfs:isDefinedBy rdf:resource="http://data-gov.tw.rpi.edu/vocab.php?instance=Barack_Obama"/>
   <rdf:type rdf:resource="http://data-gov.tw.rpi.edu/vocab/c/White_House_Visitee"/>
   <owl:sameAs rdf:resource="http://dbpedia.org/resource/Barack_Obama"/>
   <owl:sameAs rdf:resource="http://rdf.freebase.com/ns/en.barack_obama"/>
   <owl:sameAs rdf:resource="http://data.nytimes.com/47452218948077706853"/>
   <skos:altLabel>POTUS</skos:altLabel>
</swivt:Subject>

Sample Query

list sameas links

select *
from named <http://data-gov.tw.rpi.edu/wikidata/White_House_Visitee>
where {
  GRAPH <http://data-gov.tw.rpi.edu/wikidata/White_House_Visitee>
  {
    ?s <http://www.w3.org/2002/07/owl#sameAs> ?o .
  }
}

list white house people with links to dbpedia and depiction

PREFIX swivt:  <http://semantic-mediawiki.org/swivt/1.0#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
PREFIX foaf: <http://xmlns.com/foaf/0.1/> 
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> 
SELECT *
WHERE {
  GRAPH <http://data-gov.tw.rpi.edu/wikidata/White_House_Visitee>
  {
    ?s a <http://data-gov.tw.rpi.edu/vocab/c/White_House_Visitee> .    
    {
     { 
       ?s foaf:firstName ?firstName.
       ?s foaf:lastName ?lastName .
     } 
     UNION
     {
            ?s skos:altLabel ?lastName . 
     }
    }
    OPTIONAL {
       ?s <http://www.w3.org/2002/07/owl#sameAs> ?dbpedia_uri .
       filter ( regex(str(?dbpedia_uri),"dbpedia" ) )
    }
    OPTIONAL { ?s foaf:homepage  ?homepage .  }
    OPTIONAL { ?s foaf:depiction ?depiction . }
  }
}
Personal tools
internal pages