Hi Michel,

I think for global datatypes you could just make them subclasses of  
xsd:string:

1) In the Preferences page for Classes, make sure that xsd:string is  
visible
2) Create a subclass of xsd:string.

Example (in Turtle) would be

ex:myType
       a       rdfs:Datatype ;
       rdfs:label "my type"^^xsd:string ;
       rdfs:subClassOf xsd:string .

You can then add another empty row under rdfs:subClassOf and enter  
your Manchester Syntax restrictions, such as

xsd:integer[>18]

and you will get the triples described in the OWL 2 spec.

Holger


On Nov 4, 2009, at 1:58 PM, Bohms, H.M. (Michel) wrote:

>
> Hmmm, I would think it is RDF/XML since it starts with  
> rdf:Description etc.
>
> But anyway, I have now 3.2 installed.
> Defined a test ontology, activated owl2 and defined  
> adatatypeproperty called posttalCode.
>
> Now I want to give it a range not being just xsd:string but a new  
> userdefined type called PostalCode that is based on the xsd:string  
> but could be further constraint ...
>
> How do I actually do that  ..... Thx a lot again, Michel
>
>
>
>
>
>
>   TNO.NL
>
>
>
> Michel Böhms
>
> Consultant Building Innovation
>
>
> TNO Built Environment and Geosciences
>
> Van Mourik Broekmanweg 6 | PO Box 49
>
> 2600 AA | Delft | The Netherlands
>
>
>
>
>
> Tel +31 15 2763107
>
> E-mail  [email protected]
>
> Web http://www.linkedin.com/in/michelbohms
>
> Skype name michelbohms
>
>
>
>
>
> Disclaimer
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:topbraid- 
> [email protected]] On Behalf Of Jeremy Carroll
> Sent: woensdag 4 november 2009 22:35
> To: [email protected]
> Subject: [tbc-users] Re: userdefined datatypes
>
>
> The quoted text is similar to that which Jena would output on RDF/ 
> XML-ABBREV
>
> (not that readable, but state of the art in readability for RDF/XML).
>
> Jeremy
>
> Bohms, H.M. (Michel) wrote:
>> When it says RDF/XML syntax..does it mean full or abbreviated?
>>
>> Ie can:
>>
>> <rdf:Description rdf:about="personAge">
>>   <owl:equivalentClass>
>>     <rdfs:Datatype>
>>       <owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#integer 
>> "/>
>>       <owl:withRestrictions rdf:parseType="Collection">
>>         <rdf:Description>
>>           <xsd:minInclusive 
>> rdf:datatype="http://www.w3.org/2001/XMLSchema#integer 
>> ">0</xsd:minInclusive>
>>         </rdf:Description>
>>         <rdf:Description>
>>           <xsd:maxInclusive 
>> rdf:datatype="http://www.w3.org/2001/XMLSchema#integer 
>> ">150</xsd:maxInclusive>
>>         </rdf:Description>
>>       </owl:withRestrictions>
>>     </rdfs:Datatype>
>>   </owl:equivalentClass>
>> </rdf:Description>
>>
>> Still be compacted in some way?
>>
>
>
>
> This e-mail and its contents are subject to the DISCLAIMER at 
> http://www.tno.nl/disclaimer/email.html
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to