solang - sparqling your photo managersolang sparqling your photo manager debarshi ray department of...
TRANSCRIPT
![Page 1: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/1.jpg)
IntroductionSearch
TagsMeta-dataConclusion
SolangSPARQLing Your Photo Manager
Debarshi Ray
Department of Computer Science, University of Helsinki
FOSDEM 2010
Debarshi Ray Solang
![Page 2: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/2.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Presented by:Philip Van Hoof
Debarshi Ray Solang
![Page 3: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/3.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Debarshi Ray Solang
![Page 4: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/4.jpg)
IntroductionSearch
TagsMeta-dataConclusion
What Do We Need?
Search
Tags
Meta-data
Debarshi Ray Solang
![Page 5: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/5.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Find All Photos
SPARQL query
SELECT ?photo ?mimeWHERE {
?photo a nmm:Photo ;nie:mimeType ?mime .
}
Debarshi Ray Solang
![Page 6: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/6.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Find Photos Based On Tags
SPARQL query
SELECT ?photo ?mimeWHERE {
?photo a nmm:Photo ;nie:mimeType ?mime .{?photo nao:hasTag <urn:uuid:2680792f-...-dcc7780de246> .}
}
Debarshi Ray Solang
![Page 7: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/7.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Find Photos Based On URLs (fake free text search)
SPARQL query
SELECT ?photo ?mimeWHERE {
?photo a nmm:Photo ;nie:mimeType ?mime .{?photo nie:url ?url . FILTER REGEX (?url, ’deolti’, ’i’)}
}
Debarshi Ray Solang
![Page 8: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/8.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Find Photos Based On Multiple Criteria
SPARQL query
SELECT ?photo ?mimeWHERE {
?photo a nmm:Photo ;nie:mimeType ?mime .{?photo nao:hasTag <urn:uuid:2680792f-...-dcc7780de246> .}{?photo nmm:fnumber ’4.6’ .}
}
Debarshi Ray Solang
![Page 9: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/9.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Retrieve All Tags
SPARQL query
SELECT DISTINCT ?tag ?desc ?urnWHERE {
?urn a nao:Tag ;nao:prefLabel ?tag .OPTIONAL {
?urn a nie:InformationElement ;nie:comment ?desc .
}}ORDER BY ASC(?tag)
Debarshi Ray Solang
![Page 10: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/10.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Create A Tag
SPARQL query
INSERT { :tag a nao:Tag ; nao:prefLabel ’favourites’ ;a nie:InformationElement ; nie:comment ’All those...’ .
} WHERE { OPTIONAL {?tag a nao:Tag ; nao:prefLabel ’favourites’ ;a nie:InformationElement ; nie:comment ’All those...’ . }FILTER (!bound(?tag))
}
Debarshi Ray Solang
![Page 11: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/11.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Delete A Tag
SPARQL query
DELETE {<urn:uuid:2680792f-...-dcc7780de246> a rdfs:Resource .
}
Debarshi Ray Solang
![Page 12: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/12.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Attach Tags To Photos
SPARQL query
INSERT {?photo nao:hasTag <urn:uuid:2680792f-...-dcc7780de246> .
}WHERE {
?photo nie:url ’file:///home/.../class.jpg’ .}
Debarshi Ray Solang
![Page 13: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/13.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Detach Tags From Photos
SPARQL query
DELETE {?photo nao:hasTag <urn:uuid:2680792f-...-dcc7780de246> .
}WHERE {
?photo nie:url ’file:///home/.../class.jpg’ .}
Debarshi Ray Solang
![Page 14: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/14.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Extract Meta-data
SPARQL query
SELECT nmm:exposureTime(?photo)WHERE {
?photo a nmm:Photo ;nie:url ’file:///home/.../class.jpg’ .
}
Debarshi Ray Solang
![Page 15: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/15.jpg)
IntroductionSearch
TagsMeta-dataConclusion
That’s all, folks.Any questions?
Debarshi Ray Solang
![Page 16: Solang - SPARQLing Your Photo ManagerSolang SPARQLing Your Photo Manager Debarshi Ray Department of Computer Science, University of Helsinki FOSDEM 2010 Debarshi Ray Solang Introduction](https://reader037.vdocuments.site/reader037/viewer/2022090507/601cb76e51bccb6c8e53d77f/html5/thumbnails/16.jpg)
IntroductionSearch
TagsMeta-dataConclusion
Solang
http://projects.gnome.org/solang#solang on irc.freenode.net
Debarshi Ray Solang