freme-project / e-services

Apache License 2.0
1 stars 1 forks source link

[e-terminology] wrong URI scheme in the output #48

Closed m1ci closed 7 years ago

m1ci commented 7 years ago

I used https://api-dev.freme-project.eu/doc/api-doc/full.html#!/e-Translation/tildeTranslate and used the provided example for translation with nif version 2.1. I noticed that in the output there are triples which still use the old URI scheme (char=X,Y)

Follows the results I get:

@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix its:   <http://www.w3.org/2005/11/its> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix nif:   <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .

<http://freme-project.eu/#offset_0_9>
        a                     nif:Phrase , nif:OffsetBasedString ;
        nif:anchorOf          "Translate"^^xsd:string ;
        nif:annotationUnit    [ itsrdf:taAnnotatorsRef  <https://services.tilde.com/systems/translation/smt-c71f6f22-5e2a-4682-a4cc-2d97d38fac5e> ;
                                itsrdf:target           "übersetzen"@de
                              ] ;
        nif:beginIndex        "0"^^xsd:nonNegativeInteger ;
        nif:endIndex          "9"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://freme-project.eu/#char=0,12> .

<http://freme-project.eu/#char=0,12>
        a                    nif:String , nif:RFC5147String , nif:Context ;
        nif:beginIndex       "0"^^xsd:nonNegativeInteger ;
        nif:endIndex         "12"^^xsd:nonNegativeInteger ;
        nif:isString         "Translate me" ;
        itsrdf:mtConfidence  "0.786140778027426" ;
        itsrdf:target        "Mir übersetzen"@de .

<http://freme-project.eu/#offset_10_12>
        a                     nif:Phrase , nif:OffsetBasedString ;
        nif:anchorOf          "me"^^xsd:string ;
        nif:annotationUnit    [ itsrdf:taAnnotatorsRef  <https://services.tilde.com/systems/translation/smt-c71f6f22-5e2a-4682-a4cc-2d97d38fac5e> ;
                                itsrdf:target           "Mir"@de
                              ] ;
        nif:beginIndex        "10"^^xsd:nonNegativeInteger ;
        nif:endIndex          "12"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://freme-project.eu/#char=0,12> .

Note the http://freme-project.eu/#char=0,12 - which is wrong.

andish commented 7 years ago

E-terminology and e-translation services do not convert uploaded data from NIF 2.0 to NIF 2.1. If you submit data in NIF 2.0 and say it is in NIF 2.1, then e-service will enrich with new data that are in NIF 2.1 format. Submitted data remains as it was uploaded.

m1ci commented 7 years ago

makes sense, thanks for clarification