Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link emperors to works they've written #3

Open
paregorios opened this issue Jun 22, 2012 · 2 comments
Open

link emperors to works they've written #3

paregorios opened this issue Jun 22, 2012 · 2 comments

Comments

@paregorios
Copy link
Owner

for example, add triples like

<http://dbpedia.org/resource/Gordian_III> dcterms:creator <http://papyri.info/ddbdp/p.tebt;2;285/original> 
@paregorios
Copy link
Owner Author

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

@portableant
Copy link
Contributor

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")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants