Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nonNegativeInteger datatype recognition #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nevenavv
Copy link

@nevenavv nevenavv commented May 3, 2011

XSD's nonNegativeInteger datatype was not supported and when parsing document with such datatype, and then working with it's triples would give following exception (Jena backend):

java.lang.RuntimeException: java.lang.IllegalArgumentException: No matching field found: lexicalValue for class java.lang.Integer

Simple example:

File: simple.rdf

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:j.0="http://test.com/" > 
  <rdf:Description rdf:about="http://test.com/a">
    <j.0:b rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</j.0:b>
  </rdf:Description>
</rdf:RDF>

test:

(def model (document-to-model (java.io.FileInputStream. "simple.rdf") :xml))
(def triples (model-to-triples model))
(count triples)
=> Exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant