Hi James,

Thank you for your feedback.

Please see the following reasons for keeping the nonNegativeInteger type:

1) The designation of nonNegativeInteger makes sense for the maxCardinality 
property. We know that a negative value would be invalid, and we'd like to 
clearly express that.

2) We obtain our ontologies from a variety of sources. They are designed and 
maintained by their originators. As long as they are semantically valid, we 
would like to use them without modification.

3) For the reason of data integrity, we'd like to restrict the type so that we 
are confident that it will retain its assigned type when writing into and 
reading out of the triple store.

That's why it would be very nice if Virtuoso could accommodate the 
nonNegativeInteger type without modifying it.

Regards,
Eliza

From: james anderson <ja...@dydra.com<mailto:ja...@dydra.com>>
Date: Thursday, February 12, 2015 6:42 AM
To: Eliza Chan <elc2...@med.cornell.edu<mailto:elc2...@med.cornell.edu>>
Subject: Re: [Virtuoso-users] Virtuoso changes nonNegativeInteger to Integer

good morning, ms chan;

i write to you as a bystander on the virtuoso list, who is most curious, what 
you use case is, such the the specific concrete datatype, 
xsd:nonNegativeInteger, is in itself significant, rather than just the domain 
value itself?

is the mechanism which interprets the owl definition so restrictive, that it is 
not sufficient, that the actual type of the domain value satisfy the constraint 
and, in addition, the domain specified in the literal must also conform?

are you at liberty to describe why the integer type is not specifically 
sufficient?

best regards, from berlin,

On 2015-02-11, at 16:49, Eliza Chan 
<elc2...@med.cornell.edu<mailto:elc2...@med.cornell.edu>> wrote:

Hi,

We are facing an issue with the import of some RDF files to Virtuoso.

The issue here is, Virtuoso changes all the nonNegativeInteger datatypes to 
integer.

Please see the following example ...

Original content being imported into Virtuoso:

<owl:Restriction>
<owl:onProperty rdf:resource="http://www.w3.org/2006/vcard/ns#country"/>
<owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger";>1</owl:maxCardinality>
</owl:Restriction>

Export from Virtuoso:

  <rdf:Description rdf:nodeID="b17159">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"; />
    <owl:onProperty rdf:resource="http://www.w3.org/2006/vcard/ns#country"; />
    <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer";>1</owl:maxCardinality>
  </rdf:Description>

Note that the datatype for maxCardinality has been modified by Virtuoso from 
nonNegativeInteger to integer.

Is there a way to resolve this issue so that Virtuoso is able to keep the 
original datatype?

FYI - We are using Virtuoso Open Source stable version 7.

Thank you so much for your help.

Eliza

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.net/_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net<mailto:Virtuoso-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/virtuoso-users



---
james anderson | ja...@dydra.com<mailto:ja...@dydra.com> | http://dydra.com





------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to