On 05/03/13 22:15, Dave Reynolds wrote:
On 05/03/13 17:26, Mark Fischer wrote:
I'd like to talk about all integers greater then 400.
This appears to be what I'm looking to do.
http://jena.sourceforge.net/how-to/typedLiterals.html#userXSD
sourceforge site.
(how it managed to avoid all the redirects is a mystery currently)
http://jena.apache.org/documentation/notes/typed-literals.html
Seems I need to create a file such that reading it in will create the
user
defined
types that I'm interested in. First, can I do this grammatically instead?
To a some extent the use of XSD-defined types in OWL have been
superseded by the OWL2 support for types. Jena natively doesn't support
OWL2 but it may be that Pellet supports the OWL datatype reasoning (I
don't know).
If not, what
is this file supposed to look like? (my installastion of Jena doesn't
have
a testing
folder let alone a file called jena2/testing/xsd/daml+oil-ex-dt.xsd)
Well that folder is in svn:
http://svn.apache.org/repos/asf/jena/trunk/jena-core/testing/xsd/
However, it doesn't have the test file in it!
No idea when that got deleted. That ought to mean that the tests for it
now fail but eclipse can't find the tests either!!
No doubt there was some announcement of changes in that area but I must
have missed it or forgotten about it.
DAML+OIL removed:
https://issues.apache.org/jira/browse/JENA-351
https://issues.apache.org/jira/browse/JENA-333
(actually, that was "finishing removing" as most of it went a long time ago)
Andy
Yes those method calls haven't been marked as deprecated. Confused.
Thanks in advance for any insight.
Sorry but it looks like the user defined types should be avoided unless
someone can shed light on what's happened.
The Manchester OWL syntax I'm trying to emulate is
"hasColoroficContentValue some integer[>= 400]"
I believe that I want to do something akin to
model.createSomeValuesFromRestriction(null, hasColorificContentValue,
model.getResource("http://www.w3.org/2001/XMLSchema#integer"))
Only I need to replace xsd:integer with the facet I want.
Not quite. If you have a reasoner which understands OWL2 Datatype
restrictions then you can create the datatype restriction by following
the RDF syntax given in the DatatypeRestriction line of table 1 in:
http://www.w3.org/TR/owl2-mapping-to-rdf/#Translation_of_Axioms_without_Annotations
The facets you can use in there are described in:
http://www.w3.org/TR/2012/REC-owl2-syntax-20121211/#Datatype_Maps
Sorry but none of this supported natively in Jena.
Dave