semantic web - Sesame 2.7 failed to recognise RDF Literal -


i'm having trouble sesame 2.7. suppose have following rdf document:

<rdf:rdf xmlns:arq="http://example.com/vocab.rdf#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">  <arq:photo rdf:about="http://example.com/photo_2230.rdf">     <arq:photoname rdf:datatype="http://www.w3.org/2000/01/rdf-schema#literal">testing</arq:photoname>     <!-- more properties -->     ... </arq:photo> 

when submit sesame, following error appears:

'testing' not recognised, , not verified, datatype http://www.w3.org/2000/01/rdf-schema#literal

it working fine previous sesame version (version 2.6.9). now, after update, sesame 2.7 not recognize , not finding why. have guess of going on?

thanks!

in older versions of sesame, parser gave warning when encountered unrecognized datatypes. in sesame 2.7, default, parser stops error (though considering relaxing bit again in next update). in older versions of sesame, not recognized , have seen warning in logs when tried load data.

the reason unrecognized datatype "http://www.w3.org/2000/01/rdf-schema#literal" not datatype identifier @ all. instead, identifier of class of literals (so entirely different thing). should remove datatype rdf, incorrect usage of datatype mechanism.

to spell out, change line:

<arq:photoname rdf:datatype="http://www.w3.org/2000/01/rdf-schema#literal">testing</arq:photoname> 

to:

<arq:photoname>testing</arq:photoname> 

apart fixing data, can of course configure sesame's parser not fail on invalid datatypes. programmatically, done adapting parserconfig used in connection's parser.

 repositoryconnection conn;  // repository connection   // set parser used in connection report datatype   // verification errors not fail on them.  conn.getparserconfig().addnonfatalerror(basicparsersettings.verify_datatype_values); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -