nasar2016 / rdfquery

Automatically exported from code.google.com/p/rdfquery
0 stars 0 forks source link

Support for own rdf:datatypes #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When parsing RDF containing triples with rdf:datatypes not defined in 
$.typedValue.types RDFQuery currently throws a "The datatype can't be 
recognised"-exception. 

Often, e.g. in the project I'm currently working on, one does not in advance 
know the content of the RDF that is read, including the rdf:datatypes used. 
Parsing RDF in such projects with RdfQuery 1.0 might thus fail. 

In our example the parsing of a DbPedia resource 
(http://dbpedia.org/data/Asker.rdf) failed because it contained DbPedia-defined 
datatypes such as "http://dbpedia.org/datatype/inhabitantsPerSquareKilometre".

In our current project it was thus necessary to modifiy RDFQuery such that it 
handles data types not defined in $.typedValue.types as if they were strings 
(http://www.w3.org/2001/XMLSchema#string). This modification arguably makes 
RDFQuery more usable in many cases and should possibly be the default behaviour?

Original issue reported on code.google.com by jen...@gmail.com on 28 Nov 2011 at 2:17