paregorios / roman-emperors

creating linked data about Roman emperors
8 stars 5 forks source link

link emperors to works they've written #3

Open paregorios opened 12 years ago

paregorios commented 12 years ago

for example, add triples like

<http://dbpedia.org/resource/Gordian_III> dcterms:creator <http://papyri.info/ddbdp/p.tebt;2;285/original> 
paregorios commented 12 years ago

you could do this sort of thing for monuments they commission, monuments dedicated to them, etc.

portableant commented 12 years ago

You can pull the monuments and battles out of dbpedia for quite a few of them eg http://dbpedia.org/page/Augustus has so much rich data. I've tried to do this on my pages, but I can't get my SPARQL optionals to work properly across the gamut of emperors eg:

PREFIX owl: http://www.w3.org/2002/07/owl# PREFIX xsd: http://www.w3.org/2001/XMLSchema# PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# PREFIX foaf: http://xmlns.com/foaf/0.1/ PREFIX dc: http://purl.org/dc/elements/1.1/ PREFIX : http://dbpedia.org/resource/ PREFIX dbpedia2: http://dbpedia.org/property/ PREFIX dbpedia: http://dbpedia.org/ PREFIX skos: http://www.w3.org/2004/02/skos/core# PREFIX dbpedia-owl: http://dbpedia.org/ontology/

SELECT *

WHERE { ?emperor foaf:page http://en.wikipedia.org/wiki/Augustus . OPTIONAL {?emperor dbpedia-owl:abstract ?abstract} . OPTIONAL {?emperor foaf:depiction ?depiction}. OPTIONAL {?emperor dbpedia-owl:thumbnail ?thumb} . OPTIONAL {?emperor dbpedia2:imgw ?imgw} . OPTIONAL {?emperor dbpedia-owl:placeOfBurial ?buried} . ?emperor foaf:page ?page. FILTER langMatches( lang(?abstract), "en") }