culturecommunication / ginco

Gestion Informatisée de Nomenclatures Collaboratives et Ouvertes
http://culturecommunication.github.io/ginco/
Other
41 stars 23 forks source link

La contrainte d'unicité des termes bloque les imports #40

Closed xsimo closed 8 years ago

xsimo commented 8 years ago

CODE SKOS:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF 
    xmlns:abcd="http://purl.org/dc/elements/1.1/" 
    xmlns:dct="http://purl.org/dc/terms/" 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
    xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<skos:ConceptScheme rdf:about="http://abc.com/ark/abc">
    <dct:title xml:lang="fr">ABC - REFERENCES</dct:title>
    <abcd:language>fr-FR</abcd:language>
</skos:ConceptScheme>
<skos:Concept rdf:about="http://abc.com/ark/123">
   <skos:prefLabel xml:lang="fr">photo</skos:prefLabel>
   <skos:altLabel xml:lang="fr">image</skos:altLabel>
</skos:Concept>
<skos:Concept rdf:about="http://abc.com/ark/456">
   <skos:prefLabel xml:lang="fr">dessin</skos:prefLabel>
   <skos:altLabel xml:lang="fr">image</skos:altLabel>
</skos:Concept>
</rdf:RDF>

Lors de l'import j'obtiens le message le terme image existe déjà. Bug ou Feature ?

hufon commented 8 years ago

Ceci n'est pas possible en effet. Un terme est unique et est lié à un et un seul concept.

xsimo commented 8 years ago

Est-ce que ce xml gagnerait à être modifié comme suit ?

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF 
    xmlns:abcd="http://purl.org/dc/elements/1.1/" 
    xmlns:dct="http://purl.org/dc/terms/" 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
    xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<skos:ConceptScheme rdf:about="http://abc.com/ark/abc">
    <dct:title xml:lang="fr">ABC - REFERENCES</dct:title>
    <abcd:language>fr-FR</abcd:language>
</skos:ConceptScheme>
<skos:Concept rdf:about="http://abc.com/ark/123">
   <skos:prefLabel xml:lang="fr">photo</skos:prefLabel>
   <skos:broader rdf:resource="http://abc.com/ark/789"/>
</skos:Concept>
<skos:Concept rdf:about="http://abc.com/ark/456">
   <skos:prefLabel xml:lang="fr">dessin</skos:prefLabel>
   <skos:broader rdf:resource="http://abc.com/ark/789"/>
</skos:Concept>
<skos:Concept rdf:about="http://abc.com/ark/789">
    <skos:prefLabel xml:lang="fr">image</skos:prefLabel>
</skos:Concept>
</rdf:RDF>

Si oui, je crois que ce billet peut être fermé.