Dataset 10011

From Data-gov Wiki

Jump to: navigation, search
Metadata
RDF data
Links
NOTES: This dataset covers data with following features: state.
Infobox (User Generated Dataset) edit with form
  • name: us-location


Contents

Sample Data

 <swivt:Subject rdf:about="http://data-gov.tw.rpi.edu/vocab/California">
   <rdfs:label>California</rdfs:label>
   <swivt:page rdf:resource="http://data-gov.tw.rpi.edu/wiki/California"/>
   <rdfs:isDefinedBy rdf:resource="http://data-gov.tw.rpi.edu/vocab.php?instance=California"/>
   <rdf:type rdf:resource="http://data-gov.tw.rpi.edu/vocab/c/State_of_the_U.S."/>
   <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-02-26T00:00:00</dcterms:modified>
   <dgtwc:abbreviation>CA</dgtwc:abbreviation>
   <foaf:name>California</foaf:name>
   <owl:sameAs rdf:resource="http://sws.geonames.org/5332921/"/>
   <owl:sameAs rdf:resource="http://dbpedia.org/resource/California"/>
   <skos:altLabel>California</skos:altLabel>
   <skos:altLabel>california</skos:altLabel>
   <skos:altLabel>CALIFORNIA</skos:altLabel>
   <skos:altLabel>CA</skos:altLabel>
   <skos:altLabel>ca</skos:altLabel>
 </swivt:Subject>

Sample SPARQL Queries

List 50 US States and DC; then show their name and links to Dbpedia

PREFIX foaf:  <http://xmlns.com/foaf/0.1/>
PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#> 
SELECT ?state_name ?dbpedia_uri
FROM NAMED <http://data-gov.tw.rpi.edu/wikidata/United_States_and_Territories>
WHERE { 
 GRAPH <http://data-gov.tw.rpi.edu/wikidata/United_States_and_Territories> 
 {
  {
    ?entry a <http://data-gov.tw.rpi.edu/vocab/c/State_of_the_U.S.>
  }
  UNION
  {
    ?entry a <http://data-gov.tw.rpi.edu/vocab/c/District_of_the_U.S.>
  }
  ?entry foaf:name ?state_name.
  ?entry owl:sameAs ?dbpedia_uri.
  filter (regex(str(?dbpedia_uri),"dbpedia.org"))
 }
}

Find a place named "District of Columbia"

PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#> 
PREFIX skos:  <http://www.w3.org/2004/02/skos/core#>
SELECT *
FROM NAMED <http://data-gov.tw.rpi.edu/wikidata/United_States_and_Territories>
WHERE { 
  GRAPH <http://data-gov.tw.rpi.edu/wikidata/United_States_and_Territories> 
  {
    ?entry skos:altLabel "District of Columbia" .
    ?entry ?p ?o .
  }
 }

you can also replace the label to "NEW YORK", "new york" and many others

TODO

State-related dataset Linking dataset

Personal tools
internal pages