User:Andreas Plank/RDF export

From TDWG Terms Wiki
Jump to: navigation, search

Problems / Issues

  • standard RDF export must have a XSLT post processing to get better RDF
  • manual RDF export with {{#ask:… foramt=rdf}} produces too erratic URLs (depending on what properties are set and not set on a page)
    alternatively one could keep the URL constant in #ask-ing all wanted properties, even if they are not set
  • Extension:Data Transfer might be a work around but it is based on the export of: category ↔ page ↔ template ↔ parameter and produces (nested) XML. It can also export properties, but this export is just the property page itself (see generated URL of Category:Species on www.nematodes.org).
    Example output of template data of the category Species (http://www.nematodes.org)
    XML output of identical data showing data from category “Species” on http://www.nematodes.org
    Simplified outputStandard output
    <Pages>
      <Species><!-- the category -->
        <Page>
          <ID>
            909
          </ID>
          <Title><!-- the page title -->
            Heterorhabditis bacteriophora
          </Title>
          <Species><!-- Template:Species (was named somehow confusing) -->
            <taxon_name><!-- parameter "taxon name" {{Species | taxon_name = Heterorhabditis bacteriophora | … }} -->
              Heterorhabditis bacteriophora
            </taxon_name>
            <taxon_level>
              species
            </taxon_level>
            <taxon_parent>
              Heterorhabditis
            </taxon_parent>
            <ncbi_taxonid>
              37862
            </ncbi_taxonid>
            <species_description>
              entomopathogenic nematode
            </species_description>
            <species_bclade>
              Bclade_V
            </species_bclade>
            <species_picture>
              Heterorhabditis bacteriophora.jpg
            </species_picture>
            <species_interested_party>
              Paul Sternberg
            </species_interested_party>
            <species_genome_status>
              in annotation
            </species_genome_status>
            <species_mitochondrion_status>
              in annotation
            </species_mitochondrion_status>
            <species_symbiont_status>
              published
            </species_symbiont_status>
            <species_genome_url>
              http://www.wormbase.org/
            </species_genome_url>
            <species_genome_institutions>
              SternbergLab CalTech
            </species_genome_institutions>
            <species_genome_seqcentres>
              The Genome Institute at Washington University
            </species_genome_seqcentres>
            <species_genome_contact>
              Paul Sternberg
            </species_genome_contact>
            <species_transcriptome_status>
              none
            </species_transcriptome_status>
            <species_transcriptome_notes>
              NEMBASE4: clusterid HBC, updated 08/2008, 8 libraries, 10,593 clusters, 42,354 ESTs
            </species_transcriptome_notes>
          </Species>
        </Page>
        <!-- etc. … -->
      </Species>
    </Pages>
    
    <Pages>
      <Category Name="Species">
        <Page ID="909" Title="Heterorhabditis bacteriophora">
          <Template Name="Species">
            <Field Name="taxon_name">
            Heterorhabditis bacteriophora
            </Field>
            <Field Name="taxon_level">
            species
            </Field>
            <Field Name="taxon_parent">
            Heterorhabditis
            </Field>
            <Field Name="ncbi_taxonid">
            37862
            </Field>
            <Field Name="species_description">
            entomopathogenic nematode
            </Field>
            <Field Name="species_bclade">
            Bclade_V
            </Field>
            <Field Name="species_picture">
            Heterorhabditis bacteriophora.jpg
            </Field>
            <Field Name="species_interested_party">
            Paul Sternberg
            </Field>
            <Field Name="species_genome_status">
            in annotation
            </Field>
            <Field Name="species_mitochondrion_status">
            in annotation
            </Field>
            <Field Name="species_symbiont_status">
            published
            </Field>
            <Field Name="species_genome_url">
            http://www.wormbase.org/
            </Field>
            <Field Name="species_genome_institutions">
            SternbergLab CalTech
            </Field>
            <Field Name="species_genome_seqcentres">
            The Genome Institute at Washington University
            </Field>
            <Field Name="species_genome_contact">
            Paul Sternberg
            </Field>
            <Field Name="species_transcriptome_status">
            none
            </Field>
            <Field Name="species_transcriptome_notes">
            NEMBASE4: clusterid HBC, updated 08/2008, 8 libraries, 10,593 clusters, 42,354 ESTs
            </Field>
          </Template>
        </Page>
        <!-- etc. … -->
      </Category>
    </Pages>
    
    • using nested templates or nested forms, nested XML should be possible to export
    • the problem may be to map template parameter

Standard Export RDF

Example RDF output “dcterms:accessRights”
<!DOCTYPE rdf:RDF>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
  xmlns:owl="http://www.w3.org/2002/07/owl#" 
  xmlns:swivt="http://semantic-mediawiki.org/swivt/1.0#" 
  xmlns:wiki="http://terms.gbif.org/wiki/Special:URIResolver/" 
  xmlns:property="http://terms.gbif.org/wiki/Special:URIResolver/Property-3A" 
  xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/" 
  xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:vann="http://purl.org/vocab/vann/">
  <owl:Ontology rdf:about="http://terms.gbif.org/wiki/Special:ExportRDF/dcterms%3AaccessRights">
    <swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">
      2012-11-13T09:32:41+01:00
    </swivt:creationDate>
    <owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
  </owl:Ontology>
  <swivt:Subject rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/dcterms-3AaccessRights">
    <rdf:type rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Class-3ACheck_semantic_properties"/>
    <rdf:type rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Class-3AConcept"/>
    <rdf:type rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Class-3ADublin_Core"/>
    <rdf:type rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Class-3ADarwin_Core"/>
    <rdfs:label>
      dcterms:accessRights
    </rdfs:label>
    <swivt:page rdf:resource="http://terms.gbif.org/wiki/dcterms:accessRights"/>
    <rdfs:isDefinedBy rdf:resource="http://terms.gbif.org/wiki/Special:ExportRDF/dcterms:accessRights"/>
    <rdfs:isDefinedBy rdf:resource="http://dublincore.org/documents/dcmi-terms/"/>
    <swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">
      0
    </swivt:wikiNamespace>
    <swivt:specialProperty_ERRP rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
    <swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">
      2012-11-02T14:23:41Z
    </swivt:wikiPageModificationDate>
    <property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">
      2456234.0997801
    </property:Modification_date-23aux>
    <swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      dcterms:accessRights
    </swivt:wikiPageSortKey>
    <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      http://purl.org/dc/terms/accessRights
    </dcterms:identifier>
    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">
      2003-02-15Z
    </dc:issued>
    <property:dcterms-3Aissued-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">
      2452685.5
    </property:dcterms-3Aissued-23aux>
    <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      2008/01/14
    </dcterms:modified>
    <rdfs:range rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/http-3A//purl.org/dc/terms/RightsStatement"/>
    <rdfs:subPropertyOf rdf:resource="http://terms.gbif.org/wiki/dcterms:rights"/>
    <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      en:Information about who can access the resource or an indication of its security status.
    </skos:definition>
    <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      fr:De l'information au sujet de qui peut accéder à la ressource ou une indication de son état de sécurité.
    </skos:definition>
    <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      de:Informationen darüber, wer auf die Ressource oder einen hingewiesenen Sicherheitsstatus zugreift.
    </skos:definition>
    <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      es:Información acerca de quién puede tener acceso al recurso o una indicación de su estado de seguridad.
    </skos:definition>
    <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      ja:誰がその資料にアクセスできるのか、または資料に関するセキュリティについての情報。アクセス権はプライバシー、セキュリティ、ポリシー等による制限を含む。
    </skos:definition>
    <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      en:Access Rights may include information regarding access or restrictions based on privacy, security, or other policies.
    </skos:example>
    <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      fr:Droits d'accès peuvent inclure l'accès concernant les renseignements ou les restrictions fondées sur la vie privée, la sécurité, ou d'autres politiques.
    </skos:example>
    <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      de:Zugriffsrechte können Informationen über den Zugang oder eine Einschränkung der Privatsphäre, Sicherheit oder anderer Richtlinien beinhalten.
    </skos:example>
    <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      es:Derechos de acceso puede incluir acceso a la información en relación con o restricciones basadas en la privacidad, la seguridad, u otras políticas.
    </skos:example>
    <skos:inScheme rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Dublin_Core"/>
    <skos:inScheme rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Darwin_Core"/>
    <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      fr:Droits d'accès
    </skos:prefLabel>
    <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      de:Zugriffsrechte
    </skos:prefLabel>
    <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      es:Derechos de Acceso
    </skos:prefLabel>
    <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      ja:Access Rights
    </skos:prefLabel>
    <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      en:Access Rights
    </skos:prefLabel>
    <property:terms-2Dinternal-3AenDefinition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      Information about who can access the resource or an indication of its security status.
    </property:terms-2Dinternal-3AenDefinition>
    <property:terms-2Dinternal-3AenExample rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      Access Rights may include information regarding access or restrictions based on privacy, security, or other policies.
    </property:terms-2Dinternal-3AenExample>
    <property:terms-2Dinternal-3AenLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      Access Rights
    </property:terms-2Dinternal-3AenLabel>
    <property:terms-2Dinternal-3AlowercasePagename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      dcterms:accessrights
    </property:terms-2Dinternal-3AlowercasePagename>
    <property:terms-2Dinternal-3Apagename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
      dcterms:accessRights
    </property:terms-2Dinternal-3Apagename>
    <vann:termGroup rdf:resource="http://terms.gbif.org/wiki/Special:URIResolver/Darwin_Core_Record-2Dlevel_Terms"/>
  </swivt:Subject>
  <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate"/>
  <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Class-3ACheck_semantic_properties"/>
  <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Class-3AConcept"/>
  <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Class-3ADublin_Core"/>
  <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Class-3ADarwin_Core"/>
  <owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page"/>
  <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace"/>
  <owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#specialProperty_ERRP"/>
  <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3AModification_date-23aux"/>
  <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey"/>
  <owl:DatatypeProperty rdf:about="http://purl.org/dc/terms/identifier"/>
  <owl:DatatypeProperty rdf:about="http://purl.org/dc/elements/1.1/issued"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Adcterms-3Aissued-23aux"/>
  <owl:DatatypeProperty rdf:about="http://purl.org/dc/terms/modified"/>
  <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/http-3A//purl.org/dc/terms/RightsStatement"/>
  <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#definition"/>
  <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#example"/>
  <owl:ObjectProperty rdf:about="http://www.w3.org/2004/02/skos/core#inScheme"/>
  <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#prefLabel"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Aterms-2Dinternal-3AenDefinition"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Aterms-2Dinternal-3AenExample"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Aterms-2Dinternal-3AenLabel"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Aterms-2Dinternal-3AlowercasePagename"/>
  <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Aterms-2Dinternal-3Apagename"/>
  <owl:ObjectProperty rdf:about="http://purl.org/vocab/vann/termGroup"/>
  <!-- Created by Semantic MediaWiki, http://semantic-mediawiki.org/ -->
  </rdf:RDF>


Modified RDF export via #ask

Example: Concepts from class Darwin Core are exported to this RDF.

#ask Syntax (may be easily adapted to meet needs of GBIF) …
{{#ask: [[Category: Darwin Core]] [[Category:Concept]]
|?dcterms:identifier
|?dcterms:issued
|?dcterms:modified
|?skos:prefLabel
|?skos:altLabel
|?skos:definition
|?skos:example
|?skos:inScheme
|?skos:closeMatch
|?vann:termGroup<!-- we use it also for dwcattributes:organizedInClass -->
|?vs:term status<!-- a bug exports vs:term instead of vs:term_status-->
|?rdfs:isDefinedBy
|?rdfs:subPropertyOf
|?dcterms:replaces
|?concept type<!-- the concept type: class, property … -->
|format=rdf
}}
RDF export of the previous #ask query …
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
        <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
        <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
        <!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
        <!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
        <!ENTITY wiki 'http://terms.gbif.org/wiki/Special:URIResolver/'>
        <!ENTITY property 'http://terms.gbif.org/wiki/Special:URIResolver/Property-3A'>
        <!ENTITY wikiurl 'http://terms.gbif.org/wiki/'>
]>

<rdf:RDF
        xmlns:rdf="&rdf;"
        xmlns:rdfs="&rdfs;"
        xmlns:owl ="&owl;"
        xmlns:swivt="&swivt;"
        xmlns:wiki="&wiki;"
        xmlns:property="&property;"
        xmlns:dcterms="http://purl.org/dc/terms/"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:skos="http://www.w3.org/2004/02/skos/core#"
        xmlns:vann="http://purl.org/vocab/vann/">

        <owl:Ontology>
                <swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-11-14T10:45:21+01:00</swivt:creationDate>
                <owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
        </owl:Ontology>
        <swivt:Subject rdf:about="http://purl.org/dc/terms/dcterms:accessRights">
                <rdfs:label>dcterms:accessRights</rdfs:label>
                <swivt:page rdf:resource="http://terms.gbif.org/wiki/dcterms:accessRights"/>
                <rdfs:isDefinedBy rdf:resource="http://terms.gbif.org/wiki/Special:ExportRDF/dcterms:accessRights"/>
                <rdfs:isDefinedBy rdf:resource="http://dublincore.org/documents/dcmi-terms/"/>
                <swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
                <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">http://purl.org/dc/terms/accessRights</dcterms:identifier>
                <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2003-02-15Z</dc:issued>
                <property:dcterms-3Aissued-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2452685.5</property:dcterms-3Aissued-23aux>
                <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2008/01/14</dcterms:modified>
                <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr:Droits d'accès</skos:prefLabel>
                <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">de:Zugriffsrechte</skos:prefLabel>
                <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">es:Derechos de Acceso</skos:prefLabel>
                <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ja:Access Rights</skos:prefLabel>
                <skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en:Access Rights</skos:prefLabel>
                <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en:Information about who can access the resource or an indication of its security status.</skos:definition>
                <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr:De l'information au sujet de qui peut accéder à la ressource ou une indication de son état de sécurité.</skos:definition>
                <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">de:Informationen darüber, wer auf die Ressource oder einen hingewiesenen Sicherheitsstatus zugreift.</skos:definition>
                <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">es:Información acerca de quién puede tener acceso al recurso o una indicación de su estado de seguridad.</skos:definition>
                <skos:definition rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ja:誰がその資料にアクセスできるのか、または資料に関するセキュリティについての情報。アクセス権はプライバシー、セキュリティ、ポリシー等による制限を含む。</skos:definition>
                <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en:Access Rights may include information regarding access or restrictions based on privacy, security, or other policies.</skos:example>
                <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr:Droits d'accès peuvent inclure l'accès concernant les renseignements ou les restrictions fondées sur la vie privée, la sécurité, ou d'autres politiques.</skos:example>
                <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">de:Zugriffsrechte können Informationen über den Zugang oder eine Einschränkung der Privatsphäre, Sicherheit oder anderer Richtlinien beinhalten.</skos:example>                <skos:example rdf:datatype="http://www.w3.org/2001/XMLSchema#string">es:Derechos de acceso puede incluir acceso a la información en relación con o restricciones basadas en la privacidad, la seguridad, u otras políticas.</skos:example>               
                <skos:inScheme rdf:resource="&wiki;Dublin_Core"/>
                <skos:inScheme rdf:resource="&wiki;Darwin_Core"/>
                <vann:termGroup rdf:resource="&wiki;Darwin_Core_Record-2Dlevel_Terms"/>
                <rdfs:subPropertyOf rdf:resource="http://localhost/wiki/dcterms:rights"/>
        </swivt:Subject>
        <!-- etc. -->
        <!-- etc. -->
        <!-- etc. -->
        <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
        <owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
        <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
        <owl:DatatypeProperty rdf:about="http://purl.org/dc/terms/identifier" />
        <owl:DatatypeProperty rdf:about="http://purl.org/dc/elements/1.1/issued" />
        <owl:DatatypeProperty rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/Property-3Adcterms-3Aissued-23aux" />
        <owl:DatatypeProperty rdf:about="http://purl.org/dc/terms/modified" />
        <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#prefLabel" />
        <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#definition" />
        <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#example" />
        <owl:ObjectProperty rdf:about="http://www.w3.org/2004/02/skos/core#inScheme" />
        <owl:ObjectProperty rdf:about="http://purl.org/vocab/vann/termGroup" />
        <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/http-3A//www.w3.org/2000/01/rdf-2Dschema-23Literal" />
        <owl:Class rdf:about="http://terms.gbif.org/wiki/Special:URIResolver/http-3A//purl.org/dc/terms/Agent" />
        <owl:DatatypeProperty rdf:about="http://www.w3.org/2004/02/skos/core#altLabel" />
        <!-- Created by Semantic MediaWiki, http://semantic-mediawiki.org/ -->
</rdf:RDF>


Proposed mappings, actions / Open questions

Some questions relate to using correct SMW data types (see Help:Recommendation for setting Data Types in Semantic MediaWiki)

Property Notes/ Proposed action
property:terms-2Dinternal… delete
swivt:wikiNamespace delete
swivt:specialProperty_ERRP delete; is "Has improper value for" but is not (yet) defined in the Semantic Wiki Vocabulary and Terminology. Note: URLs with a #-character for data type URL produce wrongly this error. In SMW version 1.8 this is corrected.
swivt:specialProperty_IMPO is related to "Imported from"; probably delete (?or use it to extract information); this is not defined either in the Semantic Wiki Vocabulary and Terminology
swivt:Subject is the Wikipage (skos:Concept in this case), depending on the page source:
  • translate to skos:Concept depending on the page source
  • translate to skos:Collection depending on the page source
swivt:page + 2 × rdfs:isDefinedBy
  • swivt:page + rdfs:isDefinedBy are of the same information, e.g.
    <swivt:page rdf:resource="http://terms.gbif.org/wiki/dwc:catalogNumber"/> is equivalent to the (automatically) inserted
    <rdfs:isDefinedBy rdf:resource="http://terms.gbif.org/wiki/Special:ExportRDF/dwc:catalogNumber"/>
    … so delete one of them (swivt:page)?
  • rdfs:isDefinedBy is set twice:
    1. once (automatically) inserted but pointing to the page RDF e.g.:
      <rdfs:isDefinedBy rdf:resource="http://terms.gbif.org/wiki/Special:ExportRDF/dwc:catalogNumber"/> and
    2. produced by template:Concept e.g.
      <rdfs:isDefinedBy rdf:resource="http://rs.tdwg.org/dwc/terms/"/> by {{Concept | is defined by = … }}
So the first means “is (technically) defined by this Wiki page” and the latter means “is (originally) defined”. How to deal with this?
rdfs:range data type URL or Page? pro Page: if we have Wiki pages (=rebuild external vocabulary). Note: [[Imported from::…]] changes the rdfs:isDefinedBy to be the external URL; pro URL: if we use just external URL or internal URLs
  • I set it to URL (Andreas Plank 10:44, 15 November 2012 CET). Use {{Complete pagename to fullurl| PAGENAME}}. Note: there is a bug http://terms.gbif.org/wiki/dwc:catalogNumber becomes sometimes (ecach time?) http://localhost/dwc:catalogNumber. It can only be corrected by purging and open the page in editing mode and save it unchanged (do this several times)
dcterms:modified this is of data type String because SMW data type Date can not handle data ranges 2007-11-13/15, rdf export looks like:
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2007-11-13/15</dcterms:modified>

swivt:… properties

swivt means Semantic Wiki Vocabulary and Terminology