eichmann / ld4l_services Goto Github PK
View Code? Open in Web Editor NEWA web app providing name lookup and triple extraction from a number of cached sources, including DBpedia, FAST, GeoNames, GRID, and VIAF.
A web app providing name lookup and triple extraction from a number of cached sources, including DBpedia, FAST, GeoNames, GRID, and VIAF.
The RDF returned for AGROVOC does not include labels for broader and narrower terms.
$ curl -L -D - -H 'Accept: application/n-triples' 'http://services.ld4l.org/ld4l_services/agrovoc_batch.jsp?query=milk&maxRecords=2&startRecord=1&lang=en'
HTTP/1.1 200
Date: Thu, 10 Jun 2021 20:20:06 GMT
Server: Apache/2.4.33 (Unix) PHP/7.1.33 LibreSSL/2.2.7
Content-Type: application/n-triples;charset=UTF-8
Set-Cookie: JSESSIONID=BF796D998DCD4BA8BF22B8FCC411253E;path=/ld4l_services;HttpOnly
Transfer-Encoding: chunked
<http://aims.fao.org/aos/agrovoc/c_4826> <http://vivoweb.org/ontology/core#rank> "1" .
...
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://vivoweb.org/ontology/core#rank> "2" .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#prefLabel> "melon seed milk@en"@en .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#inScheme> <http://aims.fao.org/aos/agrovoc> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://purl.org/dc/terms/created> "2017-12-20T09:21:28Z^^http://www.w3.org/2001/XMLSchema#dateTime" .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#definition> <http://aims.fao.org/aos/agrovoc/xDef_6b8b691d> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#prefLabel> "kavun çekirdeği sütü@tr"@tr .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://purl.org/dc/terms/modified> "2018-01-15T17:27:59Z^^http://www.w3.org/2001/XMLSchema#dateTime" .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://rdfs.org/ns/void#inDataset> <http://aims.fao.org/aos/agrovoc/void.ttl#Agrovoc> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#altLabel> "sübye@tr"@tr .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2008/05/skos-xl#altLabel> <http://aims.fao.org/aos/agrovoc/xl_tr_b02cad2d> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#definition> <http://aims.fao.org/aos/agrovoc/xDef_749cc696> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#broader> <http://aims.fao.org/aos/agrovoc/c_4832> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2008/05/skos-xl#prefLabel> <http://aims.fao.org/aos/agrovoc/xl_tr_07b28116> .
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2008/05/skos-xl#prefLabel> <http://aims.fao.org/aos/agrovoc/xl_en_b2e63733> .
<http://ld4l.org/ld4l_services/cache> <http://vivoweb.org/ontology/core#count> "2" .
NOTE: 1st result was removed because 2nd result is shorter and easier to see that the broader label is not included in the results.
The broader term is...
<http://aims.fao.org/aos/agrovoc/c_c10f4381> <http://www.w3.org/2004/02/skos/core#broader> <http://aims.fao.org/aos/agrovoc/c_4832> .
and you can see that there are no subjects with URI <http://aims.fao.org/aos/agrovoc/c_4832>
, so no label triple.
BUG: The exact match appears as the first item on every page.
[
{"uri": "http://aims.fao.org/aos/agrovoc/c_4826","label": "milk@en"},
{"uri": "http://aims.fao.org/aos/agrovoc/c_c10f4381","label": "melon seed milk@en"},
{"uri": "http://aims.fao.org/aos/agrovoc/c_331328","label": "milk fat yield@en"},
{"uri": "http://aims.fao.org/aos/agrovoc/c_331327","label": "milk protein yield@en"}
]
[
{"uri": "http://aims.fao.org/aos/agrovoc/c_4826", "label": "milk@en"},
{"uri": "http://aims.fao.org/aos/agrovoc/c_331327","label": "milk protein yield@en"},
{"uri": "http://aims.fao.org/aos/agrovoc/c_1a3a6e9a","label": "oat milk@en"},
{"uri": "http://aims.fao.org/aos/agrovoc/c_54e9f6e0","label": "almond milk@en"}
]
NOTE: I purposefully used startRecord=3 to see where "milk protein yield" would fall in the list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.