[ECODP-dev] ckan2ts

Bert Van Nuffelen bert.van.nuffelen at tenforce.com
Mon Jan 7 15:28:19 UTC 2013


Hi Darwin, John and David,

I finally got a bit time to investigate the process ckan -> virtuoso.
The good news is that I could get it working on the odp.tenforce.com
by the next changes
   * a ecodp.ini change to the right namespace
   * adding a file called namespace with the portal namespace in it in
the ckan2ts folder ~/ckan2ts/work/rdf
   * changing the configuration of ckan2ts to let ~/ckan2ts/work/rdf
be the import folder

The bad news is that the rdf-export module of ckan does not produce
valid XML/RDF.

2013-01-07 14:14:34,419 main ERROR
com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler Couldn't create
transaction:com.hp.hpl.jena.shared.JenaException:
com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form
'2012-06-18' is not a legal instance of
Datatype[http://www.w3.org/2001/XMLSchema#dateTime -> class
com.hp.hpl.jena.datatypes.xsd.XSDDateTime] Lexical form '2012-06-18'
is not a legal instance of
Datatype[http://www.w3.org/2001/XMLSchema#dateTime -> class
com.hp.hpl.jena.datatypes.xsd.XSDDateTime] during parse
-org.apache.xerces.impl.dv.InvalidDatatypeValueException:
cvc-datatype-valid.1.2.1: '2012-06-18' is not a valid value for
'dateTime'.

    2013-01-07 14:27:08,208 main ERROR
com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler Couldn't create
transaction:com.hp.hpl.jena.shared.JenaException:
com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '' is
not a legal instance of
Datatype[http://www.w3.org/2001/XMLSchema#dateTime -> class
com.hp.hpl.jena.datatypes.xsd.XSDDateTime] Lexical form '' is not a
legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime
-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] during parse
-org.apache.xerces.impl.dv.InvalidDatatypeValueException:
cvc-datatype-valid.1.2.1: '' is not a valid value for 'dateTime'.

The problem is simple: the dates being entered are declared to be a
xsd:dateTime format but they do not comply to the standard.
Some reference on the XSD:dateTime standard.
http://books.xmlschemata.org/relaxng/ch19-77049.html

Can you put the update to a correct version in this sprint?

A related issue:
   The xmlns abbrevations contain the next abbreviations:

   xmlns:ecodp="http://ec.europa.eu/open-data/ontologies/ec-odp#"
   xmlns="http://ec.europa.eu/open-data/ontologies/ec-odp-example#">

probably we have to change them to the right namespace prefix.
To be discussed what it should be.

kind regards,

Bert

-- 
Bert Van Nuffelen

Semantic Technologies Software Architect at TenForce
www.tenforce.be

Bert.Van.Nuffelen at tenforce.com
Office: +32 (0)16 31 48 60
Mobile:+32 479 06 24 26
skype: bert.van.nuffelen




More information about the ecodp-dev mailing list