~bzg/ox-skos

d763fe9be9f704c945069c8e5214d281595d1d1f — Bastien 5 years ago a6ba966
Add examples
4 files changed, 116 insertions(+), 2 deletions(-)

M README.md
A README.org
A examples/org-skos-example.org
A examples/org-skos-example.xml
M README.md => README.md +3 -2
@@ 1,3 1,4 @@
# Org exporters to handle SKOS .org files
ox-skos.el : export an \`.org\` file as XML/RDF using the SKOS.

See the `examples/` directory for small examples.

- ox-skos.el : export an `.org` file as XML/RDF

A README.org => README.org +5 -0
@@ 0,0 1,5 @@
#+TITLE: Export .org file to SKOS rdf files

ox-skos.el : export an `.org` file as XML/RDF using the SKOS.

See the =examples/= directory for small examples.

A examples/org-skos-example.org => examples/org-skos-example.org +36 -0
@@ 0,0 1,36 @@
#+TITLE: Vocabulary
#+EMAIL: bzg@bzg.fr
#+AUTHOR: Bastien
#+CONTRIBUTOR: Bastien Guerry
#+TYPE: Thesaurus
#+DESCRIPTION: Vocabulary
#+PUBLISHER: Bastien Guerry
#+HOMEPAGE: https://bzg.fr
#+RIGHTS: CC-by-sa-3.0
#+LANGUAGE: fr
#+conceptschemebaseuri: https://bzg.fr/thesaurus/resource/ark:/111111
#+conceptschemeid: T111

* Concept_one
  :PROPERTIES:
  :skos:definition: :fr Une définition pour concept_one.
  :skos:definition: :en A definition for concept_one.
  :skos:preflabel: :fr ConceptOne
  :skos:preflabel: :en ConceptOne
  :uri:      concept one
  :ID:       1
  :END:

Une définition pour concept_one.

** Concept_two
   :PROPERTIES:
   :skos:definition: :fr Une définition pour concept_two.
   :skos:definition: :en A definition for concept_two.
   :skos:preflabel: :fr ConceptTwo
   :skos:preflabel: :en ConceptTwo
   :uri:      concept two
   :ID:       1
   :END:

Une définition pour concept_two.

A examples/org-skos-example.xml => examples/org-skos-example.xml +72 -0
@@ 0,0 1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
    xmlns:schema="http://schema.org/"
    xmlns:org="http://www.w3.org/ns/org#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dct="http://purl.org/dc/terms/"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:mcc="http://www.culture.fr/thesaurus/elements/1.0/"
    xmlns:skos="http://www.w3.org/2004/02/skos/core#">

  <skos:ConceptScheme rdf:about="https://bzg.fr/thesaurus/resource/ark:/111111/T111">
    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#ConceptScheme"/>
    <dc:rights>CC-by-sa-3.0</dc:rights>
    <dct:created>2017-05-17T11:35:56+02:00</dct:created>
    <dc:relation></dc:relation>
    <dct:issued>Publication</dct:issued>
    <dct:modified>2017-05-17T11:35:56+02:00</dct:modified>
    <dc:type>Thesaurus</dc:type>
    <dc:source></dc:source>
    <dc:subject></dc:subject>
    <dc:coverage></dc:coverage>
    <dc:language>fr-FR</dc:language>
    <dc:publisher>Bastien Guerry</dc:publisher>
    <dc:contributor>Bastien Guerry</dc:contributor>
    <dc:creator>
      <foaf:Organization>
	<foaf:mbox>bzg@bzg.fr</foaf:mbox>
	<foaf:homepage>https://bzg.fr</foaf:homepage>
	<foaf:name>Bastien</foaf:name>
      </foaf:Organization>
    </dc:creator>
    <dct:description xml:lang="fr">Vocabulary</dct:description>
    <dct:title xml:lang="fr">Vocabulary</dct:title>
    <skos:hasTopConcept rdf:resource="https://bzg.fr/thesaurus/resource/ark:/111111/T111-1"/>
  </skos:ConceptScheme>

  <skos:Concept rdf:about="https://bzg.fr/thesaurus/resource/ark:/111111/T111-1">
    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
    <skos:inScheme>
      <skos:ConceptScheme rdf:about="https://bzg.fr/thesaurus/resource/ark:/111111/T111"/>
    </skos:inScheme>
    <dct:modified>2017-05-17T11:35:56+02:00</dct:modified>
    <dct:created>2017-05-17T11:35:56+02:00</dct:created>
    <skos:definition xml:lang="en">A definition for concept_one.</skos:definition>

    <skos:prefLabel xml:lang="en">ConceptOne</skos:prefLabel>



    <skos:narrower rdf:resource="https://bzg.fr/thesaurus/resource/ark:/111111/T1111"/><skos:topConceptOf rdf:resource="https://bzg.fr/thesaurus/resource/ark:/111111/T111"/>
  </skos:Concept>

  <skos:Concept rdf:about="https://bzg.fr/thesaurus/resource/ark:/111111/T111-1">
    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
    <skos:inScheme>
      <skos:ConceptScheme rdf:about="https://bzg.fr/thesaurus/resource/ark:/111111/T111"/>
    </skos:inScheme>
    <dct:modified>2017-05-17T11:35:56+02:00</dct:modified>
    <dct:created>2017-05-17T11:35:56+02:00</dct:created>
    <skos:definition xml:lang="en">A definition for concept_two.</skos:definition>

    <skos:prefLabel xml:lang="en">ConceptTwo</skos:prefLabel>



    <skos:broader rdf:resource="https://bzg.fr/thesaurus/resource/ark:/111111/T1111"/>

  </skos:Concept>

</rdf:RDF>