User/Developer guide to the public methods available in the package.
All non-private functions are available to use as utilities, but the functions listed here as API are explicitly the face of this package, here for other modules to use.
| Name | Location | Description |
|---|---|---|
| STATEMENT_SEPARATOR | relationship/relationship_api.inc | For hashing shorthand statement indexesSee also_relationship_hash_key() |
| Name | Location | Description |
|---|---|---|
| relationship_array2statements | relationship/relationship_api.inc | Convert an assoc array to a collection of statements about something. |
| relationship_flush_terms | relationship/relationship_api.inc | Empties the terms cache. |
| relationship_get_aliases | relationship/relationship.module | Return an array of aliases the current subject is known as. |
| relationship_get_assoc_column | relationship/relationship_api.inc | Return a named array, pairing the contents of column a as the key for the contents of column b. |
| relationship_get_column | relationship/relationship_api.inc | Return just the named column out of a collection of statements. |
| relationship_get_longname | relationship/relationship_api.inc | Given a shortname, retrieve the associated longname or uri. |
| relationship_get_object_title | relationship/relationship.module | Lookup title for the object of this statement. |
| relationship_get_properties | relationship/relationship_api.inc | Return all given values for a lookup of a relationship on a resource. |
| relationship_get_property | relationship/relationship_api.inc | Returns the object of a subject,predicate query, the value of a relationship on a resource. |
| relationship_get_property_map | relationship/relationship_api.inc | Return the property map for a Drupal-defined content type. |
| relationship_get_resources_matching_query | relationship/relationship_api.inc | It's quite common we want to retrieve all data about all objects meeting a cetain condition |
| relationship_get_resource_by_name | relationship/relationship_api.inc | Retrieve all statements about a given identfier as a structured array. |
| relationship_get_shortname | relationship/relationship_api.inc | Return the local shortname of a term associated with a given URI. |
| relationship_get_statement | relationship/relationship_api.inc | Return one statement matching a given RDF Query. |
| relationship_get_term | relationship/relationship_api.inc | Return the term object matching a term identifier (usually its shortname). |
| relationship_get_terms | relationship/relationship_api.inc | Return all available predicate terms, or a selected one of them. |
| relationship_guess_shortname | relationship/relationship_api.inc | Given a long namespace-qualified term URI, return what looks like the actual term. By way of string-munging, not lookups. |
| relationship_guess_shortname | relationship/relationship_api.inc | Given a long namespace-qualified term URI, return what looks like the actual term. By way of string-munging, not lookups. |
| relationship_query | relationship/relationship_api.inc | Attempt to make a SPARQL-type query on the datastore. |
| relationship_resource_delete_statements | relationship/relationship_api.inc | Remove associations of a resource (node) to its terms. |
| relationship_save_statement | relationship/relationship_api.inc | Save a given statement triple in the datastore. |
| relationship_set | relationship/relationship_api.inc | Basically a shorthand way to create and save a statement in one go. See alsorelationship_statement() |
| relationship_statement | relationship/relationship_api.inc | Just a helpful struct array constructor |
| relationship_statements2array | relationship/relationship_api.inc | Given a load of statements, build a picture about the subject. |
| relationship_statements2array | relationship/relationship_api.inc | Given a load of statements, build a picture about the subject. |
| relationship_update_resource_statements | relationship/relationship_api.inc | Save the relationship associations (statements) of a given resource. |
| relationship_validate_statement | relationship/relationship_api.inc | Check the given statement is ready to be stored. |
| _relationship_datastore | relationship/relationship_api.inc | Return a handle on the datastore |
| _relationship_hash_key | relationship/relationship_api.inc | Generate a hash key to index the statements on. |