Hi Dave,

Sorry, I know jena does not support OWL2, the intention was to know some
work in progress about it. I should have asked directly...

Thanks for your help! I'll try to create the RDF statements!


Rodrigo C. Antonialli
======================================
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
              [email protected]
              Skype: rc_antonialli


On Mon, Feb 24, 2014 at 11:07 AM, Dave Reynolds
<[email protected]>wrote:

> On 24/02/14 13:46, Rodrigo Antonialli wrote:
>
>> Hi!
>>
>> I have a doubt about Jena OWL2 support and the
>> method createCardinalityQRestriction.
>>
>
> Jena does not support OWL2.
>
> I suspect that the createCardinalityQRestriction is a hang over from the
> now-defunct DAML support and not available in the current OWL profiles.
>
> You can create OWL2 restrictions by asserting the RDF statements directly
> but there's no convenience support for OWL2 at the present time.
>
> Dave
>
>
>  What I'm building now is something like that:
>>
>> ns:sample
>>        a       owl:Class ;
>>        rdfs:subClassOf
>>                [ a       owl:Restriction ;
>>                  owl:cardinality "1"^^xsd:int ;
>>                  owl:onProperty ns:longitude
>>                ] ;
>>
>> ns:longitude
>>        a       owl:DatatypeProperty ;
>>        rdfs:range xsd:string .
>>
>>
>> What I'd like to do is to add a owl:onDataRange to the owl:Restriction and
>> come up with this:
>>
>> ns:sample
>>        a       owl:Class ;
>>        rdfs:subClassOf
>>                [ a       owl:Restriction ;
>>                  owl:cardinality "1"^^xsd:int ;
>>                  owl:onProperty ns:longitude
>>                 * owl:onDataRange xsd:string*
>>
>>                ] ;
>>
>> ns:longitude
>>        a       owl:DatatypeProperty ;
>>        rdfs:range xsd:string .
>>
>>
>> Is it possible? As far as I read the docs, the method
>> createCardinalityQRestriction could me help with that, but when I try to
>> use it, the following exception is thrown:
>>
>> Exception in thread "main" com.hp.hpl.jena.ontology.ProfileException:
>> Attempted to use language construct CARDINALITY_Q that is not supported in
>> the current language profile: OWL DL
>>
>> Is this about Jena OWL2 support? (I think that owl:onDataRange is OWL2
>> vocabulary, right?)
>>
>> I tried with other language profile but no success.
>>
>> Is there any other way I could do that declaration?!
>>
>> Thanks,
>>
>> Rodrigo C. Antonialli
>> ======================================
>> Rio Claro - SP - Brasil
>> LinkedIn: http://www.linkedin.com/in/rcantonialli
>> Contato:  (19) 98136-2347
>>                [email protected]
>>                Skype: rc_antonialli
>>
>>
>

Reply via email to