freme-project / e-services

Apache License 2.0
1 stars 1 forks source link

Update TildeETerminology.java #34

Closed andish closed 7 years ago

andish commented 7 years ago

added nif-version parameter forward to Tilde endpoints

jnehring commented 7 years ago

I merged the code. How does the output change through this function?

andish commented 7 years ago

If Nif version is set to 2.0 then generates as it was last year. If nif-version=2.1 then according new nif specification. Example 2.0

<https://services.tilde.com/document/1#char=7,12>
        a                     nif:RFC5147String ;
        nif:anchorOf          "world"@en ;

Example 2.1

<https://services.tilde.com/document/1#offset_7_12>
        a                     nif:OffsetBasedString , nif:Phrase ;
        nif:anchorOf          "world"^^xsd:string ;

How can we send nif-version parameter from documentation page? http://api-dev.freme-project.eu/doc/api-doc/full.html#!/e-Terminology/e_terminology

Seems that there is by default version 2.1 nor 2.0 in FREME server (if ommited).