freme-project / freme-project.github.io

Apache License 2.0
2 stars 0 forks source link

improve e-Entity documentation #47

Closed m1ci closed 8 years ago

m1ci commented 9 years ago

For FREME 3.0 we introduce three additional parameters for POST /e-entity/freme-ner/datasets

SELECT ?res ?label WHERE { ?res http://www.w3.org/2000/01/rdf-schema#label ?label . ?res http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://dbpedia.org/ontology/Country FILTER ( strstarts(str(?res), "http://dbpedia.org/") ) } ORDER BY ?res LIMIT 500 OFFSET 500'

The query returns a list of triples where the subject is the entity URI, and the object is the label of the entity. This query returns 500 entities of type Country from DBpedia with their URI and label. This parameter is only valid for FREME NER.

m1ci commented 9 years ago

please also indicate in the DBpedia Spotlight endpoint that only English is supported. So only language=en is valid. Otherwise, an exception is thrown. This solves https://github.com/freme-project/e-Entity/issues/32

josauder commented 9 years ago

Does the numLinks parameter work in /e-entity/freme-ner/datasets or /e-entity/freme-ner/documents? A quick glance over the source made it seems like this parameter is only supported in the latter.

m1ci commented 9 years ago

Only /documents

On Tuesday, August 25, 2015, josauder notifications@github.com wrote:

Does the numLinks parameter work in /e-entity/freme-ner/datasets or /e-entity/freme-ner/documents? A quick glance over the source made it seems like this parameter is only supported in the latter.

— Reply to this email directly or view it on GitHub https://github.com/freme-project/Documentation/issues/47#issuecomment-134604062 .

Milan Dojchinovski http://dojchinovski.mk

josauder commented 9 years ago

What about PUT /e-entity/freme-ner/datasets ? The other three parameters (description, spaql, endpoint) are not in the source code although i guess it would make sense that when updating a dataset one can also change this information. Will they also be added to PUT soon?

m1ci commented 9 years ago

What about PUT /e-entity/freme-ner/datasets ? The other three parameters (description, spaql, endpoint) are not in the source code although i guess it would make sense that when updating a dataset one can also change this information. Will they also be added to PUT soon?

@nilesh-c is this implemented in FREME NER?

jnehring commented 8 years ago

@nilesh-c please comment here.

jnehring commented 8 years ago

description is in the documentation now.

@bgrusdt please check in FREME NERs source code if the parameters "sparql" and "endpoint" are in the source code of the REST controller for PUT /e-entity/freme-ner/datasets . If yes, please test if they work and if we can add them to the documentation.

ArneBinder commented 8 years ago

Seems to be related to https://github.com/freme-project/freme-ner/issues/109.

jnehring commented 8 years ago

This issue is a dublicate of https://github.com/freme-project/freme-ner/issues/109