2016-11-07 4 views
1

Einige Wikipedia-Artikel präzise Zeitstempel in infobox hat, wie diese:bekommen alle Wikipedia-Artikel mit genauen Zeit

https://en.wikipedia.org/wiki/Apollo_11

(Auflegungsdatum: 16. Juli 1969, 13.32.00 UTC)

oder:

https://en.wikipedia.org/wiki/Remembrance_Day_bombing

(Datum: 8. November 1987 10.43 Uhr (GMT))

Gibt es eine Möglichkeit, eine Liste aller Artikel wie diesen zu bekommen? Scheint wie möglich mit SPARQL

+1

Sie können an den DBpedia Ressourcen einen Blick und sehen, dass es keine solche Eigenschaft aus der Wikipedia infobox extrahiert ist: http://dbpedia.org/resource/Apollo_11 – AKSW

Antwort

1

AFAIK Es wäre möglich, aber es muss wissen, welche Wiki-Eigenschaft mit dem Datum (oder Datum Zeit) Feld der Infobox verknüpft ist; Lassen Sie mich mit einem Beispiel erklären:

PREFIX : <http://dbpedia.org/resource/> 
PREFIX time-of-spacecraft-launch: <http://www.wikidata.org/entity/P619c> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 

SELECT ?entity_label, ?property_label, ?time_of_spacecraft_launch WHERE { 
    :Apollo_11 owl:sameAs ?wikidata_entity . 
    ?wikidata_entity time-of-spacecraft-launch: ?time_of_spacecraft_launch . 
    ?wikidata_entity rdfs:label ?entity_label . 
    ?wke_prop ?property_rel time-of-spacecraft-launch:. 
    ?wke_prop rdfs:label ?property_label . 
    FILTER (LANG(?property_label)='en' && LANG(?entity_label)='it') 
} 

click here to se the result

Jetzt sind wir alle Artikel mit der gleichen Art von Informationen einfach durch Entfernen der in dem Zustand auf Apollo_11 gelieren können:

PREFIX : <http://dbpedia.org/resource/> 
PREFIX time-of-spacecraft-launch: <http://www.wikidata.org/entity/P619c> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
SELECT ?entity_label, ?property_label, ?time_of_spacecraft_launch WHERE { 
    ?wikidata_entity time-of-spacecraft-launch: ?time_of_spacecraft_launch . 
    ?wikidata_entity rdfs:label ?entity_label . 
    ?wke_prop ?property_rel time-of-spacecraft-launch:. 
    ?wke_prop rdfs:label ?property_label . 
    FILTER (LANG(?property_label)='en' && LANG(?entity_label)='it') 
} 

see the result here fy

kann in einigen Fällen nützlich sein, um die Abfrage zu vereinfachen:

PREFIX : <http://dbpedia.org/resource/> 
PREFIX time-of-spacecraft-launch: <http://www.wikidata.org/entity/P619c> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 

SELECT * WHERE { 
    ?wikidata_entity time-of-spacecraft-launch: ?time_of_spacecraft_launch . 
    ?wikidata_entity rdfs:label ?entity_label . 
    FILTER (LANG(?entity_label)='en') 
} 
ORDER BY DESC(?time_of_spacecraft_launch) 

see the result here