Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Getting the data type of a property range

Reeves, Russell russell.reeves at
Thu Apr 26 14:36:49 PDT 2007

Here's what worked:

for (Iterator pit = onc.getAssociatedProperties().iterator(); pit.hasNext();) {
	OWLProperty op = (OWLProperty);
	if (op.isObjectProperty()) {
		RDFResource rdfr = op.getRange();
	} else { // it must be a datatype property
		RDFSDatatype rdfsd = op.getRangeDatatype();
-----Original Message-----
From: protege-owl-bounces at [mailto:protege-owl-bounces at] On Behalf Of Thomas Russ
Sent: Thursday, April 26, 2007 2:51 PM
To: User support for the Protege-OWL editor
Subject: Re: [protege-owl] Getting the data type of a property range

On Apr 26, 2007, at 10:43 AM, Reeves, Russell wrote:

> I'm using the protégé-owl api and am having no problems getting the  
> collection of a class' properties.
> I can even get a property by name.
> What I can't seem to figure out is how to get the data type of the  
> range (e.g. xsd:Date). I manage to get a SimpleInstance but don't  
> know where to go from there.
> Anyone have a code snippet?
Perhaps one of these?


protege-owl mailing list
protege-owl at

Instructions for unsubscribing: 

More information about the protege-owl mailing list