[ 
https://issues.apache.org/jira/browse/JENA-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269221#comment-17269221
 ] 

Shirley Tarboton commented on JENA-2026:
----------------------------------------

*TURTLE VERSION*

@prefix rdf:   <[http://www.w3.org/1999/02/22-rdf-syntax-ns#]> .

@prefix ex4:   <[http://example4.org/ontology/ex4#]> .

@prefix rdfs:  <[http://www.w3.org/2000/01/rdf-schema#]> .

 

<[http://example4.org/ontology/ex4#Game/1]>

        a       
<[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeB]> , 
<[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeA]> , 
ex4:Game .

 

<[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeB]>

        a       ex4:ClassOfPlaygroundEvent .

 

<[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeA]>

        a       ex4:ClassOfPlaygroundEvent .

 ** 

*RDF/XML VERSION*

<rdf:RDF

    xmlns:rdf="[http://www.w3.org/1999/02/22-rdf-syntax-ns#]";

    
xmlns:j.0="[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeB]";

    
xmlns:j.1="[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeA]";

    
xmlns:rdfs="[http://www.w3.org/2000/01/rdf-schema#";|http://www.w3.org/2000/01/rdf-schema#%22]>

   

  <rdf:Description 
rdf:about="[http://example4.org/ontology/ex4#Game/1";|http://example4.org/ontology/ex4#Game/1%22]>

    <rdf:type>

      <ex4:ClassOfPlaygroundEvent 
rdf:about="[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeB"/|http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeB%22/]>

    </rdf:type>

    <rdf:type>

      <ex4:ClassOfPlaygroundEvent 
rdf:about="[http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeA"/|http://example4.org/ontology/ex4#ClassOfPlaygroundEvent/EventTypeA%22/]>

    </rdf:type>

    <rdf:type 
rdf:resource="[http://example4.org/ontology/ex4#Game"/|http://example4.org/ontology/ex4#Game%22/]>

  </rdf:Description>

</rdf:RDF>

> Incorrectly namespacing of objects in XML - xmlns:j.0
> -----------------------------------------------------
>
>                 Key: JENA-2026
>                 URL: https://issues.apache.org/jira/browse/JENA-2026
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 3.13.0
>            Reporter: Shirley Tarboton
>            Priority: Minor
>
> When we use ClassOf... objects (PowerTypes) the RDF file contains spurious 
> namespaces e.g.  {color:#de350b}*xmlns:j.0*{color}="[http://....//#] ClassOf 
> ...."
> This happens even when we have already added a namespace using NSPrefix 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to