[SCUFL2-122] RDFXMLWriter doesn't add namespace prefix for the datatype attribute of literals in collections Created: 2012-04-19  Updated: 2012-10-05  Resolved: 2012-07-09

Status: Resolved
Project: Scufl 2
Component/s: None
Affects Version/s: 0.9.2
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: David Withers (Inactive) Assignee: Stian Soiland-Reyes
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File apiconsumer.t2flow     File apiconsumer.t2flow    
Issue Links:
Depends
has dependent SCAPE-3 OSGi Tavern 3 command-line - multiple... In Progress

 Description   

RDFXMLReader fails to correctly set the datatype of PropertyLiterals because RDFXMLWriter doesn't add the namespace prefix for the datatype attribute.
An example from the profile of workflow with an apiconsumer activity:

<parameterDimensions:parameterDimensions xmlns:parameterDimensions="http://ns.taverna.org.uk/2010/activity/apiconsumer#" xmlns:ns0="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://ns.taverna.org.uk/2010/activity/apiconsumer#" ns0:parseType="Collection">
    <ns0:li xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" datatype="http://www.w3.org/2001/XMLSchema#int">0</ns0:li>
</parameterDimensions:parameterDimensions>


 Comments   
Comment by David Withers (Inactive) [ 2012-04-19 ]

Attached example workflow that produces the error.

Comment by David Withers (Inactive) [ 2012-05-15 ]

If I add jdom to the classpath the datatype attribute gets a namespace prefix when written out and the datatype attribute is present when read back in. I think this is more of a work around than a fix but I have no more time to investigate futher.

Comment by Jenkins Automated build [ 2012-07-09 ]

Integrated in scufl2 #3470
SCUFL2-122 Include prefixes for rdf attributes (Revision 73ee1ccd89b21cece713ca51cacd5c5b0d68589a)

Result = SUCCESS
stian : 73ee1ccd89b21cece713ca51cacd5c5b0d68589a
Files :

  • scufl2-rdfxml/src/test/java/uk/org/taverna/scufl2/rdfxml/TestPropertySerialisation.java
  • scufl2-rdfxml/src/main/java/uk/org/taverna/scufl2/rdfxml/PropertyResourceSerialiser.java
Comment by Jenkins Automated build [ 2012-07-13 ]

Integrated in scufl2 #3471
SCUFL2-122 Include prefixes for rdf attributes (Revision 73ee1ccd89b21cece713ca51cacd5c5b0d68589a)

Result = SUCCESS
stian : 73ee1ccd89b21cece713ca51cacd5c5b0d68589a
Files :

  • scufl2-rdfxml/src/test/java/uk/org/taverna/scufl2/rdfxml/TestPropertySerialisation.java
  • scufl2-rdfxml/src/main/java/uk/org/taverna/scufl2/rdfxml/PropertyResourceSerialiser.java
Comment by Jenkins Automated build [ 2012-10-05 ]

Integrated in scufl2 #3488
SCUFL2-122 Include prefixes for rdf attributes (Revision fdd265597c9c2ee8699a7bf9cdd2c8b3b5827dfc)

Result = SUCCESS
stian@mygrid.org.uk : fdd265597c9c2ee8699a7bf9cdd2c8b3b5827dfc
Files :

  • scufl2-rdfxml/src/main/java/uk/org/taverna/scufl2/rdfxml/PropertyResourceSerialiser.java
  • scufl2-rdfxml/src/test/java/uk/org/taverna/scufl2/rdfxml/TestPropertySerialisation.java
Generated at Sat Dec 14 11:10:46 GMT 2019 using JIRA 6.1.2#6157-sha1:98c729218aad6de1537eb8e98889ee5562c90d96.