NAME
OWL::Data::Object
SYNOPSIS
use OWL::Data::Object;
# create an object with a namespace of NCBI_gi and id 545454
my $data = OWL::Data::Object->new (namespace=>"NCBI_gi", id=>"545454");
# set/get an article name for this data object
$data->name ('myObject');
print $data->name;
# set/get an id for this data object
$data->id ('myID');
print $data->id;
# check if this data object is a primitive type
print "a primitive" if $data->primitive;
print "not a primitive" if not $data->primitive;
# get a formatted string representation of this data object
print $data->toString;
DESCRIPTION
An object representing an owl object (usually consisting of a namespace and id)
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
Martin Senger (martin.senger [at] gmail [dot] com)
ACCESSIBLE ATTRIBUTES
Details are in OWL::Base. Here just a list of them:
- namespace
- id
- name
-
An article name for this datatype. Note that the article name depends on the context where this object is used.
- primitive
-
A boolean property indicating if this data type is a primitive owl type or not.