Hi Dhomas,
On 16/07/12 02:48, DHOMAS HATTA FUDHOLI wrote:
Hi All,
Is there any method in Jena API to rename ObjectProperty or
DatatypeProperty?
I could find only the way to rename Resource, maybe Class, using
renameResource() method in ResourceUtils class.
Thanks in advance for any advise.
If you look at the Java class hierarchy, all of the ObjectProperty,
DatatypeProperty, OntClass, etc are also subclasses of Resource. This
conforms to the RDF semantics, in which a property is a special kind of
resource which plays a particular role in the RDF graph. So in summary:
use renameResource() to rename any kind of resource in a Jena model,
including an ObjectProperty.
Ian