Skip to content
Snippets Groups Projects
Commit fd4cdf5f authored by Simon Mitternacht's avatar Simon Mitternacht
Browse files

lagt til år i depicted query dersom ikke dato finnes

parent 9ae09c59
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,11 @@ SELECT DISTINCT ?uri ?label ?img ?bio ?birthDate ?deathDate WHERE {
?uri foaf:name ?label .
OPTIONAL { ?uri foaf:img ?img . }
OPTIONAL { ?uri bio:biography ?bio . }
OPTIONAL { ?uri dbo:birthDate ?birthDate . }
OPTIONAL { ?uri dbo:deathDate ?deathDate . }
OPTIONAL { ?uri dbo:birthDate ?birthDateFull . }
OPTIONAL { ?uri dbo:deathDate ?deathDateFull . }
OPTIONAL { ?uri dbo:birthYear ?birthYear. }
OPTIONAL { ?uri dbo:deathYear ?deathYear.}
bind (COALESCE(?birthDateFull, ?birthYear) as ?birthDate)
bind (COALESCE(?deathDateFull, ?deathYear) as ?deathDate)
}
}
}
\ No newline at end of file
......@@ -8,7 +8,11 @@ SELECT DISTINCT ?uri ?label ?img ?description ?birthDate ?deathDate WHERE {
OPTIONAL { ?uri ubbont:hasThumbnail ?img . }
OPTIONAL { ?uri bio:biography ?description . }
OPTIONAL { ?uri dct:description ?description . }
OPTIONAL { ?uri dbo:birthDate ?birthDate . }
OPTIONAL { ?uri dbo:deathDate ?deathDate . }
OPTIONAL { ?uri dbo:birthDate ?birthDateFull . }
OPTIONAL { ?uri dbo:deathDate ?deathDateFull . }
OPTIONAL { ?uri dbo:birthYear ?birthYear. }
OPTIONAL { ?uri dbo:deathYear ?deathYear.}
bind (COALESCE(?birthDateFull, ?birthYear) as ?birthDate)
bind (COALESCE(?deathDateFull, ?deathYear) as ?deathDate)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment