Redland RDF Library Manual | ||||
---|---|---|---|---|
Top | Description |
librdf_node * librdf_get_concept_resource_by_index (librdf_world *world
,librdf_concepts_index idx
); librdf_uri * librdf_get_concept_uri_by_index (librdf_world *world
,librdf_concepts_index idx
); librdf_uri * librdf_get_concept_ms_namespace (librdf_world *world
); librdf_uri * librdf_get_concept_schema_namespace (librdf_world *world
); #define LIBRDF_MS_Alt #define LIBRDF_MS_Alt_URI #define LIBRDF_MS_Bag #define LIBRDF_MS_Bag_URI #define LIBRDF_MS_Description #define LIBRDF_MS_Description_URI #define LIBRDF_MS_Property #define LIBRDF_MS_Property_URI #define LIBRDF_MS_RDF #define LIBRDF_MS_RDF_URI #define LIBRDF_MS_Seq #define LIBRDF_MS_Seq_URI #define LIBRDF_MS_Statement #define LIBRDF_MS_Statement_URI #define LIBRDF_MS_aboutEach #define LIBRDF_MS_aboutEachPrefix #define LIBRDF_MS_aboutEachPrefix_URI #define LIBRDF_MS_aboutEach_URI #define LIBRDF_MS_li #define LIBRDF_MS_li_URI #define LIBRDF_MS_object #define LIBRDF_MS_object_URI #define LIBRDF_MS_predicate #define LIBRDF_MS_predicate_URI #define LIBRDF_MS_subject #define LIBRDF_MS_subject_URI #define LIBRDF_MS_type #define LIBRDF_MS_type_URI #define LIBRDF_MS_value #define LIBRDF_MS_value_URI #define LIBRDF_RS_List #define LIBRDF_RS_List_URI #define LIBRDF_RS_XMLLiteral #define LIBRDF_RS_XMLLiteral_URI #define LIBRDF_RS_first #define LIBRDF_RS_first_URI #define LIBRDF_RS_nil #define LIBRDF_RS_nil_URI #define LIBRDF_RS_nodeID #define LIBRDF_RS_nodeID_URI #define LIBRDF_RS_rest #define LIBRDF_RS_rest_URI #define LIBRDF_S_Class #define LIBRDF_S_Class_URI #define LIBRDF_S_ConstraintProperty #define LIBRDF_S_ConstraintProperty_URI #define LIBRDF_S_ConstraintResource #define LIBRDF_S_ConstraintResource_URI #define LIBRDF_S_Container #define LIBRDF_S_ContainerMembershipProperty #define LIBRDF_S_ContainerMembershipProperty_URI #define LIBRDF_S_Container_URI #define LIBRDF_S_Literal #define LIBRDF_S_Literal_URI #define LIBRDF_S_Resource #define LIBRDF_S_Resource_URI #define LIBRDF_S_comment #define LIBRDF_S_comment_URI #define LIBRDF_S_domain #define LIBRDF_S_domain_URI #define LIBRDF_S_isDefinedBy #define LIBRDF_S_isDefinedBy_URI #define LIBRDF_S_label #define LIBRDF_S_label_URI #define LIBRDF_S_range #define LIBRDF_S_range_URI #define LIBRDF_S_seeAlso #define LIBRDF_S_seeAlso_URI #define LIBRDF_S_subClassOf #define LIBRDF_S_subClassOf_URI #define LIBRDF_S_subPropertyOf #define LIBRDF_S_subPropertyOf_URI #define LIBRDF_URI_RDF_MS #define LIBRDF_URI_RDF_SCHEMA
This module presents RDF concepts from either the RDF namespace http://www.w3.org/1999/02/22-rdf-syntax-ns# or the RDF Schema namespace http://www.w3.org/2000/01/rdf-schema#
This list includes both syntax terms such as
rdf:li
as well as model concepts (RDF
properties or classes) such as rdf:Seq
These are used in code using two lists of macros to get fast pointers to librdf_node or librdf_uri objects for the concept. These should be copied with the appropriate librdf_node or librdf_uri class copy constructors before use.
Example 1. Using macros to get a node and URI for an RDF concept
1 2 3 4 |
#include <redland.h> ... librdf_node* n=librdf_new_node_from_node(LIBRDF_MS_value); librdf_uri* u=librdf_new_uri_from_uri(LIBRDF_MS_value_URI); |
librdf_node * librdf_get_concept_resource_by_index (librdf_world *world
,librdf_concepts_index idx
);
Get Redland node object for RDF concepts.
|
redland world object |
|
librdf_concepts_index |
Returns : |
librdf_node pointer or NULL on failure. |
librdf_uri * librdf_get_concept_uri_by_index (librdf_world *world
,librdf_concepts_index idx
);
Get Redland uri object for RDF concepts.
|
redland world object |
|
librdf_concepts_index |
Returns : |
librdf_uri pointer or NULL on failure. |
librdf_uri * librdf_get_concept_ms_namespace (librdf_world *world
);
Get a shared librdf_uri for the RDF Syntax namespace.
|
librdf world object |
Returns : |
librdf_uri pointer or NULL on failure. |
librdf_uri * librdf_get_concept_schema_namespace (librdf_world *world
);
Get a shared librdf_uri for the RDF Schema namespace.
|
librdf world object |
Returns : |
librdf_uri pointer or NULL on failure. |
#define LIBRDF_MS_aboutEachPrefix
RDF namespace concept librdf_node aboutEachPrefix
#define LIBRDF_MS_aboutEachPrefix_URI
RDF namespace concept URI aboutEachPrefix
#define LIBRDF_S_ConstraintProperty
RDFS namespace concept ConstraintProperty
#define LIBRDF_S_ConstraintProperty_URI
RDFS namespace concept URI ConstraintProperty
#define LIBRDF_S_ConstraintResource
RDFS namespace concept ConstraintResource
#define LIBRDF_S_ConstraintResource_URI
RDFS namespace concept URI ConstraintResource
#define LIBRDF_S_ContainerMembershipProperty
RDFS namespace concept ContainerMembershipProperty
#define LIBRDF_S_ContainerMembershipProperty_URI
RDFS namespace concept URI ContainerMembershipProperty
#define LIBRDF_S_subPropertyOf_URI
RDFS namespace concept URI subPropertyOf
#define LIBRDF_URI_RDF_MS
librdf_uri for rdf:
namespace. Copy with
librdf_new_uri_from_uri()
before using.
#define LIBRDF_URI_RDF_SCHEMA
librdf_uri for rdfs:
namespace. Copy with
librdf_new_uri_from_uri()
before using.
RDF Vocabulary Description Language 1.0: RDF Schema, Graham Klyne and Jeremy J. Carroll, Editors, W3C Recommendation, 10 February 2004.
Resource Description Framework (RDF): Concepts and Abstract Syntax, Dan Brickley and R. V. Guha, Editors, W3C Recommendation, 10 February 2004.
Navigation: Redland Home Page