| RDF-Core documentation | view source | Contained in the RDF-Core distribution. |
RDF::Core::Schema - The RDF Schema access
require RDF::Core::Schema;
my $schema = new RDF::Core::Schema(); $schema->getClasses;
This module provides the basic interface (OO) for RDF Schema manipulation.
Interface
Construct the object. $storage is the RDF::Core::Storage object that contains schema data. $factory may specify the RDF::Core::Factory to be used.
Return all classes defined in the model.
Get all subclasses of given $class. $class may be either URI string or RDF::Core::Resource. If $deep is true, inheritance takes a deal.
Get all ancestors of a given $class. $class may be either URI string or RDF::Core::Resource. If $deep is true, inheritance takes a deal.
Tells, whether $what is a subless of $whom. Both of parameters may be either of RDF::Core::Resource or URI string.
Get all subproperties of given $property. $property may be either URI string or RDF::Core::Resource. If $deep is true, inheritance takes a deal.
Get all ancestor properties of given $property. $property may be either URI string or RDF::Core::Resource. If $deep is true, inheritance takes a deal.
Tells, whether $what is a subless of $whom. Both of parameters may be either of RDF::Core::Resource or URI string.
Get all properties of given $class. No inheritance rules are applied, since they are not defined in RDF Schema. $class may be either URI string or RDF::Core::Resource. If $deep is true, inheritance takes a deal.
| RDF-Core documentation | view source | Contained in the RDF-Core distribution. |