Closed tuxpiper closed 8 years ago
Nasko will change this soon :)
it's changed already, has been retrieving the correct property for a while now. Check this query, where the most recent images are shown:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pheme: <http://www.pheme.eu/ontology/pheme#>
PREFIX dlpo: <http://www.semanticdesktop.org/ontologies/2011/10/05/dlpo#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
select ?a ?date ?eventId ?thread ?text ?imageURL where {
?a pheme:eventId ?eventId.
?a pheme:createdAt ?date .
?a sioc:has_container ?thread .
?a pheme:hasEvidentialityPicture ?imageURL .
#?a pheme:eventId "2045". # if you want to restrict to a particular event
?a dlpo:textualContent ?text.
?a pheme:version "v7"
} #order by desc(xsd:integer(?eventId))
order by desc(?date)
limit 100
Thank you @lauratolosi !
In graphdb the url for image evidentiality is stored as something like:
http://twitter.com/DaystoTrump/status/748327740143636480/photo/1
which is a whole HTML document, displaying the image in the context of the thread, instead of the image itself, which would be:
http://pbs.twimg.com/media/CmIuxsJWkAAEUZa.png
Both URLs are provided by twitter in their data model, we would need GraphDB to store the
media_url
property.