NLP2RDF / NIF-lib

A small java library for NLP Interchange Format (NIF) for NER(D) systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json-ld - playground

sandroacoelho opened this issue · comments

Hi @m1ci , @kurzum:

  • "annotationUnit" was not properly mapped in our context

It was fixed. So the current output will be:


{
    "@context": "http://www.jsonld-context.io/api/v1?ontology=http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core&ontology=http://www.w3.org/2005/11/its/rdf",
    "@graph": [{
        "@id": "b4ac3c64c1ac9b5d3178d2ec3ba101c7",
        "@type": ["Context", "OffsetBasedString"],
        "beginIndex": 0,
        "endIndex": 33,
        "isString": "Diego Maradona is from Argentina."
    }, {
        "@id": "b4a3fc77148b17cd21face1c1169353f",
        "@type": "Annotation",
        "taAnnotatorsRef": "http://freme-project.eu/tools/freme-ner",
        "taClassRef": ["http://dbpedia.org/ontology/Place", "http://dbpedia.org/ontology/Location", "http://dbpedia.org/ontology/PopulatedPlace", "http://nerd.eurecom.fr/ontology#Location", "http://dbpedia.org/ontology/Country"],
        "taConfidence": 0.9804963628413852,
        "taIdentRef": "http://dbpedia.org/resource/Argentina",
        "referenceContext": "b4ac3c64c1ac9b5d3178d2ec3ba101c7"
    }, {
        "@id": "ca6e4dcf014c81a0ced8b01d849a29c9",
        "@type": "Annotation",
        "taAnnotatorsRef": "http://freme-project.eu/tools/freme-ner",
        "taClassRef": ["http://dbpedia.org/ontology/Person", "http://dbpedia.org/ontology/SportsManager", "http://dbpedia.org/ontology/SoccerManager", "http://nerd.eurecom.fr/ontology#Person"],
        "taConfidence": 0.9869992701528016,
        "taIdentRef": "http://dbpedia.org/resource/Diego_Maradona",
        "referenceContext": "b4ac3c64c1ac9b5d3178d2ec3ba101c7",
        "taMsClassRef": ["http://dbpedia.org/ontology/SoccerManager"]
    }]
}