RDF Model

This module provides the RDF model support which is a set of statements (duplicates are not allowed, except in separate Redland contexts). Models can have statements added and removed, be queries and stored which is implemented by the storage classes.

RDF Model Class

Table of Contents
librdf_init_model --  Initialise librdf_model class
librdf_finish_model --  Terminate librdf_model class
librdf_model_register_factory --  Register a model factory
librdf_get_model_factory --  Get a model factory by name
librdf_new_model --  Constructor - create a new storage librdf_model object
librdf_new_model_with_options --  Constructor - Create a new librdf_model with storage
librdf_new_model_from_model --  Copy constructor - create a new librdf_model from an existing one
librdf_free_model --  Destructor - Destroy a librdf_model object
librdf_model_size --  get the number of statements in the model
librdf_model_add_statement --  Add a statement to the model
librdf_model_add_statements --  Add a stream of statements to the model
librdf_model_add --  Create and add a new statement about a resource to the model
librdf_model_add_typed_literal_statement --  Create and add a new statement about a typed literal to the model
librdf_model_add_string_literal_statement --  Create and add a new statement about a literal to the model
librdf_model_remove_statement --  Remove a known statement from the model
librdf_model_contains_statement --  Check for a statement in the model
librdf_model_as_stream --  list the model contents as a stream of statements
librdf_model_serialise --  serialise the entire model as a stream (DEPRECATED)
librdf_model_find_statements --  find matching statements in the model
librdf_model_get_sources --  return the sources (subjects) of arc in an RDF graph given arc (predicate) and target (object)
librdf_model_get_arcs --  return the arcs (predicates) of an arc in an RDF graph given source (subject) and target (object)
librdf_model_get_targets --  return the targets (objects) of an arc in an RDF graph given source (subject) and arc (predicate)
librdf_model_get_source --  return one source (subject) of arc in an RDF graph given arc (predicate) and target (object)
librdf_model_get_arc --  return one arc (predicate) of an arc in an RDF graph given source (subject) and target (object)
librdf_model_get_target --  return one target (object) of an arc in an RDF graph given source (subject) and arc (predicate)
librdf_model_add_submodel --  add a sub-model to the model
librdf_model_remove_submodel --  remove a sub-model from the model
librdf_model_get_arcs_in --  return the properties pointing to the given resource
librdf_model_get_arcs_out --  return the properties pointing from the given resource
librdf_model_has_arc_in --  check if a node has a given property pointing to it
librdf_model_has_arc_out --  check if a node has a given property pointing from it
librdf_model_print --  print the model
librdf_model_context_add_statement --  Add a statement to a model with a context
librdf_model_context_add_statements --  Add statements to a model with a context
librdf_model_context_remove_statement --  Remove a statement from a model in a context
librdf_model_context_remove_statements --  Remove statements from a model with the given context
librdf_model_context_as_stream --  list all statements in a model context
librdf_model_context_serialize --  List all statements in a model context
librdf_model_query_execute --  Execute a query against the model
librdf_model_sync --  Synchronise the model to the model implementation
librdf_model_get_storage --  return the storage of this model
librdf_model_find_statements_in_context --  search the model for matching statements in a given context
librdf_model_get_contexts --  return the list of contexts in the graph
librdf_model_get_feature --  get the value of a graph feature
librdf_model_set_feature --  set the value of a graph feature
librdf_model_find_statements_with_options --  search the model for matching statements with match options
librdf_model_load --  Load content from a URI into the model
librdf_model_to_counted_string --  Write serialized model to a string
librdf_model_to_string --  Write serialized model to a string