RDF API functions

Last modified: February 17, 2008 - 06:48

Statement-centric queries

rdf_exists($subject[, $predicate, $object, $options])
Determines whether a given statement exists.
rdf_count($subject[, $predicate, $object, $options])
Returns the number of matching statements.
rdf_query($subject[, $predicate, $object, $options])
Finds all statements matching a given triple pattern.

Statement-centric operations

rdf_insert_all($statements[, $options])
Inserts multiple new statements.
rdf_insert($subject[, $predicate, $object, $options])
Inserts a new statement.
rdf_delete_all($statements[, $options])
Deletes multiple existing statements.
rdf_delete($subject[, $predicate, $object, $options])
Deletes an existing statement.

RDF/PHP normalization

rdf_normalize()
rdf_denormalize()

RDF/PHP serialization

rdf_serialize()
rdf_unserialize()

URIs, blank nodes and literals

rdf_triple()
rdf_uriref()
rdf_bnode()
rdf_datetime()
rdf_literal()

Helper functions

rdf_is_local_uri()
rdf_is_valid_uri()
rdf_is_valid_curie()
rdf_is_valid_qname()
rdf_get_uuid()
rdf_get_datatype()

Miscellaneous

rdf_get_formats()
rdf_get_repositories()
rdf_get_namespaces()
rdf_get_contexts()

Repository selection

rdf_use_repository([$name])
Limits future queries and operations to a particular repository.

Vocabulary definition

rdf_define_vocabulary($class_name, $base_uri, $properties)
Defines an RDF vocabulary class for predicate URI construction based on a given base URI and a set of properties.
 
 

Drupal is a registered trademark of Dries Buytaert.