freme-project / e-Internationalization

Apache License 2.0
0 stars 0 forks source link

Enable ODT input format #6

Closed borriellom closed 9 years ago

borriellom commented 9 years ago

Enable the ODT input format for the convertToTurtle method in EInternationalizationAPI class.

jnehring commented 9 years ago

Next step: Enable ODT in broker

jnehring commented 9 years ago

Done. Example call:

POST http://api-dev.freme-project.eu/current/e-entity/freme-ner/documents?language=en&dataset=dbpedia&informat=application/x-openoffice

The body contains an ODT document. In my example it used this odt.

The response is

@prefix dbpedia-fr: 
<http://fr.dbpedia.org/resource/> .
@prefix dbc:   
<http://dbpedia.org/resource/Category:> .
@prefix dbpedia-es: 
    <http://es.dbpedia.org/resource/> .
@prefix xsd:   
    <http://www.w3.org/2001/XMLSchema#> .
@prefix itsrdf: 
        <http://www.w3.org/2005/11/its/rdf#> .
@prefix dbpedia: 
            <http://dbpedia.org/resource/> .
@prefix rdfs:  
            <http://www.w3.org/2000/01/rdf-schema#> .
@prefix nif:   
                <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix dbpedia-de: 
                    <http://de.dbpedia.org/resource/> .
@prefix dbpedia-ru: 
                    <http://ru.dbpedia.org/resource/> .
@prefix freme-onto: 
                    <http://freme-project.eu/ns#> .
@prefix dbpedia-nl: 
                        <http://nl.dbpedia.org/resource/> .
@prefix dcterms: 
                        <http://purl.org/dc/terms/> .
@prefix dbpedia-it: 
                        <http://it.dbpedia.org/resource/> .

                        <http://freme-project.eu/~okapi-23_OpenOfficeFilter_3812677529772210105.tmp/#char=0,18>
        a               nif:Context , nif:RFC5147String , nif:String ;
        nif:beginIndex  "0"^^xsd:int , "0"^^xsd:nonNegativeInteger ;
        nif:endIndex    "18"^^xsd:nonNegativeInteger , "18"^^xsd:int ;
        nif:isString    "Welcome to Berlin!"^^xsd:string , "Welcome to Berlin!"@en ;

                            <http://purl.org/dc/elements/1.1/identifier>
                "1" .