Re: SV: Questions about TBX to RDF handling

Hi Peter, all,

  I am not sure what the problem is. I tried the following piece of TBX 
in our converter:

<martif type="TBX-Default" xml:lang="en">
   <martifHeader>
     <fileDesc>
       <sourceDesc>
         <p>This is an excerpt of a TBX file downloaded from the IATE 
website. Address any enquiries to iate@cdt.europa.eu.</p>
       </sourceDesc>
     </fileDesc>
     <encodingDesc>
       <p type="XCSURI">TBXXCS.xcs</p>
     </encodingDesc>
   </martifHeader>
  <text>
     <body>
       <termEntry id="IATE-84">
         <descripGrp>
           <descrip type="subjectField">1011</descrip>
         </descripGrp>
     <langSet xml:lang="de">
           <tig>
             <term>Zuständigkeit der Mitgliedstaaten</term>
             <termNote type="termType">fullForm</termNote>
             <descrip type="reliabilityCode">3</descrip>
           </tig>
     </langSet>
         <langSet xml:lang="en">
           <tig>
             <term>competence of the Member States</term>
             <termNote type="termType">fullForm</termNote>
             <descrip type="definition">kommersiell <hi> verksamhet 
</hi> som drivs under ordnade former</descrip>
             <descrip type="reliabilityCode">3</descrip>
           </tig>
         </langSet>
      <langSet xml:lang="es">
           <tig>
             <term>competencias de los Estados miembros</term>
             <termNote type="termType">fullForm</termNote>
             <descrip type="reliabilityCode">3</descrip>
           </tig>
         </langSet>
   </termEntry>
</body>
</text>
</martif>

and it works, delivers:

@prefix decomp: <http://www.w3.org/ns/lemon/decomp#> .
@prefix :      <http://example.com/> .
@prefix prov:  <http://www.w3.org/ns/prov#> .
@prefix void:  <http://rdfs.org/ns/void#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcat:  <http://www.w3.org/ns/dcat#> .
@prefix tbx:   <http://tbx2rdf.lider-project.eu/tbx#> .
@prefix dct:   <http://purl.org/dc/terms/> .
@prefix ontolex: <http://www.w3.org/ns/lemon/ontolex#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix gr:    <http://purl.org/goodrelations/> .
@prefix ldr:   <http://purl.oclc.org/NET/ldr/ns#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .
@prefix cc:    <http://creativecommons.org/ns#> .
@prefix odrl:  <http://www.w3.org/ns/odrl/2/> .

<http://tbx2rdf.lider-project.eu/data/iate/es>
         a                 ontolex:Lexicon ;
         ontolex:entry 
<http://example.com/competencias+de+los+Estados+miembros-es> ;
         ontolex:language <http://www.lexvo.org/page/iso639-3/spa> .

<http://example.com/competence+of+the+Member+States-en>
         a                      ontolex:LexicalEntry ;
         tbx:definition         "kommersiell <hi>verksamhet</hi> som 
drivs under ordnade 
former"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns##XMLLiteral> ;
         tbx:reliabilityCode    3 ;
         <http://www.lexinfo.net/ontology/2.0/lexinfo#termType>
<http://www.lexinfo.net/ontology/2.0/lexinfo#fullForm> ;
         ontolex:canonicalForm 
<http://example.com/competence+of+the+Member+States-en#CanonicalForm> ;
         ontolex:language <http://www.lexvo.org/page/iso639-3/eng> ;
         ontolex:sense 
<http://example.com/competence+of+the+Member+States-en#Sense> .

<http://tbx2rdf.lider-project.eu/data/iate/en>
         a                 ontolex:Lexicon ;
         ontolex:entry 
<http://example.com/competence+of+the+Member+States-en> ;
         ontolex:language <http://www.lexvo.org/page/iso639-3/eng> .

<http://example.com/competence+of+the+Member+States-en#CanonicalForm>
         ontolex:writtenRep  "competence of the Member States"@en .

<http://example.com/competence+of+the+Member+States-en#Sense>
         ontolex:reference  :IATE-84 .

<http://example.com/Zust%C3%A4ndigkeit+der+Mitgliedstaaten-de>
         a                      ontolex:LexicalEntry ;
         tbx:reliabilityCode    3 ;
         <http://www.lexinfo.net/ontology/2.0/lexinfo#termType>
<http://www.lexinfo.net/ontology/2.0/lexinfo#fullForm> ;
         ontolex:canonicalForm 
<http://example.com/Zust%C3%A4ndigkeit+der+Mitgliedstaaten-de#CanonicalForm> 
;
         ontolex:language <http://www.lexvo.org/page/iso639-3/ger/deu> ;
         ontolex:sense 
<http://example.com/Zust%C3%A4ndigkeit+der+Mitgliedstaaten-de#Sense> .

:IATE-84  a               skos:Concept ;
         tbx:subjectField 
<http://tbx2rdf.lider-project.eu/data/iate/subjectField/1011> .

<http://example.com/competencias+de+los+Estados+miembros-es#Sense>
         ontolex:reference  :IATE-84 .

<http://example.com/competencias+de+los+Estados+miembros-es#CanonicalForm>
         ontolex:writtenRep  "competencias de los Estados miembros"@es .

<http://example.com/competencias+de+los+Estados+miembros-es>
         a                      ontolex:LexicalEntry ;
         tbx:reliabilityCode    3 ;
         <http://www.lexinfo.net/ontology/2.0/lexinfo#termType>
<http://www.lexinfo.net/ontology/2.0/lexinfo#fullForm> ;
         ontolex:canonicalForm 
<http://example.com/competencias+de+los+Estados+miembros-es#CanonicalForm> ;
         ontolex:language <http://www.lexvo.org/page/iso639-3/spa> ;
         ontolex:sense 
<http://example.com/competencias+de+los+Estados+miembros-es#Sense> .

<http://tbx2rdf.lider-project.eu/data/iate/de>
         a                 ontolex:Lexicon ;
         ontolex:entry 
<http://example.com/Zust%C3%A4ndigkeit+der+Mitgliedstaaten-de> ;
         ontolex:language <http://www.lexvo.org/page/iso639-3/ger/deu> .

:       a                 tbx:MartifHeader , dcat:Dataset ;
         <http://purl.org/dc/elements/1.1/source>
                 "This is an excerpt of a TBX file downloaded from the 
IATE website. Address any enquiries to iate@cdt.europa.eu." ;
         dct:type          "TBX-Default" ;
         tbx:encodingDesc  "<p 
type=\"XCSURI\">TBXXCS.xcs</p>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns##XMLLiteral> 
;
         tbx:sourceDesc    "<sourceDesc><p>This is an excerpt of a TBX 
file downloaded from the IATE website. Address any enquiries to 
iate@cdt.europa.eu.</p></sourceDesc>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns##XMLLiteral> 
.

<http://example.com/Zust%C3%A4ndigkeit+der+Mitgliedstaaten-de#CanonicalForm>
         ontolex:writtenRep  "Zuständigkeit der Mitgliedstaaten"@de .

<http://example.com/Zust%C3%A4ndigkeit+der+Mitgliedstaaten-de#Sense>
         ontolex:reference  :IATE-84 .

The <hi> and </hi> are in the definition...

Is that not what you want?

Philipp.

Am 02.10.15 um 17:14 schrieb Peter Svanberg:
>
> Q1: So I should usehttp://tbx2rdf.lider-project.eu/tbx# ? (Now 
> dereferenceable, good!)
>
> Q2: I found an OWL file at 
> https://github.com/cimiano/tbx2rdf/blob/master/ontology/tbx.owl
>
> Q3 (new): I just read in 
> http://www.ttt.org/oscarStandards/tbx/tbx_oscar.pdf 
> <http://www.ttt.org/oscarStandards/tbx/tbx_oscar.pdf> that
>
> Any enclosed markup shall have any start-tag characters ("<") or 
> ampersands (&) converted into their respective entities, &lt; and 
> &amp; (8.6.2)
>
> but if I do that in my example
>
> <descrip type="definition">kommersiell &lt;hi>verksamhet&lt;/hi> som 
> drivs under ordnade former</descrip>
>
> it breaks your conversion service 
> (http://tbx2rdf.lider-project.eu/converter/tbx2rdf.html, “An ERROR has 
> happened”).
>
> Regards,
>
> Peter Svanberg
>
> *Från:*johnmccrae@gmail.com [mailto:johnmccrae@gmail.com] *För *John 
> McCrae
> *Skickat:* den 2 oktober 2015 15:16
> *Till:* Peter Svanberg
> *Kopia:* public-bpmlod@w3.org
> *Ämne:* Re: Questions about TBX to RDF handling
>
> On Fri, Oct 2, 2015 at 1:47 PM, Peter Svanberg <Peter.Svanberg@tnc.se 
> <mailto:Peter.Svanberg@tnc.se>> wrote:
>
>     Extra question 1: How should these best practice reports be
>     interpreted? As (a) “Please do it this way, try to use our tbx
>     vocabulary/ontology …” or (b) “Here is some tips on how it could
>     be done, but adjust to your needs and context.”?
>
> Best practices are guides that you should follow, but are not as 
> prescriptive as a standard or recommendation. As such, it is likely 
> that for a particular case there may need to be some extension, e.g., 
> defining extra properties, but for the most part it is prefered to 
> follow the best practices.
>
>     Extra question 2: In your file tbx.owl you define both a
>     skos/core#TerminologicalConcept (not present in the SKOS spec.)
>     and (it’s subclass) tbx.owl#TerminologicalConcept, how come?
>
> That seems wrong, I have fixed it.
>
> Where did you get tbx.owl from by the way? It seems it was not 
> available at the address it should have been at, namely 
> http://tbx2rdf.lider-project.eu/tbx
>
> Regards,
>
> John
>

-- 
--
Prof. Dr. Philipp Cimiano
AG Semantic Computing
Exzellenzcluster für Cognitive Interaction Technology (CITEC)
Universität Bielefeld

Tel: +49 521 106 12249
Fax: +49 521 106 6560
Mail: cimiano@cit-ec.uni-bielefeld.de

Office CITEC-2.307
Universitätsstr. 21-25
33615 Bielefeld, NRW
Germany

Received on Friday, 2 October 2015 16:28:30 UTC