Catrina;  Thanks for the detailed report.  We have verified this as a
defect  It should work as you expect and we will get it fixed.

In the meantime, a suggested workaround would be to use an
ApplyConstruct to create triples for rdfs:label and FilterByConstruct
to remove the undesirables.

Thanks again,
-- Scott

On Nov 18, 10:42 am, Catrina <[email protected]>
wrote:
> How can I use SXML attribute to convert rdfs:label XML attributes into
> RDF properties?
>
> I have a data model that contains something like:
> rdfs:label
>       sxml:attribute <http://www.w3.org/2000/01/rdf-schema#label> .
>
> Then, I have an XML file that contains the namespace declaration and
> the use of rdfs:label.
> <skos:Concept xmlns:skos="http://www.w3.org/2004/02/skos/core";
> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema"; 
> xmlns:tr="http://www.myuri.com/TRVocabulary";  
> xmlns:dcelements="http://purl.org/dc/
> elements/1.1/"  gsi:guid="FFEFD146-D6D6-11D4-B69C-00C04F38CEDD"
> tr:index="1" gsi:virtual="false" rdfs:label="All Topics 573"
> skos:prefLabel="Some preferred label"></skos:Concept>
>
> My process imports the data model and then imports the XML file.
> Then, the XML is converted to RDF (using a ConvertXMLToRDF
> SPARQLMotion module).
>
> However, when my XML is converted to RDF, a new property is defined
> instead of using the expected rdfs:label defined by the rdf-schema.
>
> My resulting n3 file shows the undesired new property and the
> undesired XML converted to RDF for the rdfs:label:
> <http://www.myuri.com/GSI_A#Documentr>
>       rdf:type skos:Concept ;
>       sxml:prefix "dcelements" ;
>       gsi:guid "FFEFD146-D6D6-11D4-B69C-00C04F38CEDD" ;
>       gsi:virtual "false" ;
>       <http://www.myuri.com/GSI_A#rdfslabel-skosConcept>
>               "All Topics 573" ;
>       tr:index "1" .
>
> <http://www.myuri.com/GSI_A#rdfslabel-skosConcept>
>       rdf:type owl:DatatypeProperty ;
>       rdfs:domain skos:Concept ;
>       rdfs:label "rdfs:label" ;
>       sxml:attribute "rdfs:label" .
>
> <http://www.myuri.com/GSI_A#Documentr>
>       rdf:type skos:Concept ;
>       sxml:prefix "dcelements" ;
>       gsi:guid "FFEFD146-D6D6-11D4-B69C-00C04F38CEDD" ;
>       gsi:virtual "false" ;
>       <http://www.myuri.com/GSI_A#rdfslabel-skosConcept>
>               "All Topics 573" ;
>       tr:index "1" ;
>       skos:prefLabel "Some preferred label" .
>
> As you can see, I have applied something similar to the
> skos:prefLabel, which converts as expected.
>
> I have tried many variations to add the sxml:attribute to the
> rdfs:label (including the following, but not limited to this list),
> but none of them seem to work.
> rdfs:label
>       sxml:attribute "rdfs:label" .
> rdfs:label
>       sxml:attribute rdfs:label .        //difference here is the lack
> of quotes
>
> Thanks,
> Catrina

--

You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=.


Reply via email to