yulgit1 / ycba_imagenet

0 stars 0 forks source link

translate to controlled vocabulary #1

Open yulgit1 opened 7 years ago

yulgit1 commented 7 years ago

ycba/getty

example p62_depicts: http://collection.britishart.yale.edu/id/page/object/260

yulgit1 commented 7 years ago

http://vocab.getty.edu

[{"category":"book jacket, dust cover, dust jacket, dust wrapper","score":"0.16558"},{"category":"vestment","score":"0.16522"},{"category":"jigsaw puzzle","score":"0.08025"},{"category":"hoopskirt, crinoline","score":"0.07208"},{"category":"altar","score":"0.06604"}]

http://vocab.getty.edu/resource/getty/search?q=vestment&luceneIndex=Brief&indexDataset=Any&_form=%2F

SELECT ?s ?name { ?s a skos:Concept; luc:term "vestment"; skos:inScheme http://vocab.getty.edu/aat/ ; gvp:prefLabelGVP [skosxl:literalForm ?name]. FILTER regex(?name, "vestment", "i") . } ORDER BY ?name

http://vocab.getty.edu/sparql.json?query=ABOVE&_implicit=false&implicit=true&_equivalent=false&_form=%2Fsparql

results.bindings.s.value (see downloads sprawl.json)

yulgit1 commented 7 years ago

working example: http://collections.britishart.yale.edu/vufind/Record/1670921 http://localhost:8080/?id1=1670921

[ { "category":"accordion, piano accordion, squeeze box", "endpoints":[ "http://vocab.getty.edu/aat/300391192" ], "score":"0.44638" }, { "category":"sax, saxophone", "endpoints":[ "http://vocab.getty.edu/aat/300400650", "http://vocab.getty.edu/aat/300042561" ], "score":"0.14068" }, { "category":"bassoon", "endpoints":[ "http://vocab.getty.edu/aat/300199238" ], "score":"0.06898" }, { "category":"castle", "endpoints":[ "http://vocab.getty.edu/aat/300006891" ], "score":"0.03733" }, { "category":"drum, membranophone, tympan", "endpoints":[ "http://vocab.getty.edu/aat/300201280", "http://vocab.getty.edu/aat/300041661", "http://vocab.getty.edu/aat/300002736" ], "score":"0.03417" } ]

yulgit1 commented 7 years ago

https://cloud.google.com/vision/ /Users/erjhome/github_clones/models/tutorials/image/imagenet/ba-obj-501-0001-pub-large.jpg /Users/erjhome/github_clones/models/tutorials/image/imagenet/ba-obj-767-0007-pub-large.jpg

{ "labelAnnotations": [ { "mid": "/m/01_m7", "description": "column", "score": 0.9160516 }, ...

"webDetection": { "webEntities": [ { "entityId": "/m/07709g", "score": 30.20832, "description": "Trajan's Forum" }, ...

"faceAnnotations": [ .. "joyLikelihood": "VERY_UNLIKELY", "sorrowLikelihood": "UNLIKELY", "angerLikelihood": "VERY_UNLIKELY", "surpriseLikelihood": "VERY_UNLIKELY", "underExposedLikelihood": "VERY_UNLIKELY", "blurredLikelihood": "VERY_UNLIKELY", "headwearLikelihood": "POSSIBLE" ...