Concepts

Concepts — Pre-defined URIS and Nodes in the RDF namespaces.

Synopsis

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

Description

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);

Details

librdf_get_concept_resource_by_index ()

librdf_node *       librdf_get_concept_resource_by_index
                                                        (librdf_world *world,
                                                         librdf_concepts_index idx);

Get Redland node object for RDF concepts.

world :

redland world object

idx :

librdf_concepts_index

Returns :

librdf_node pointer or NULL on failure.

librdf_get_concept_uri_by_index ()

librdf_uri *        librdf_get_concept_uri_by_index     (librdf_world *world,
                                                         librdf_concepts_index idx);

Get Redland uri object for RDF concepts.

world :

redland world object

idx :

librdf_concepts_index

Returns :

librdf_uri pointer or NULL on failure.

librdf_get_concept_ms_namespace ()

librdf_uri *        librdf_get_concept_ms_namespace     (librdf_world *world);

Get a shared librdf_uri for the RDF Syntax namespace.

world :

librdf world object

Returns :

librdf_uri pointer or NULL on failure.

librdf_get_concept_schema_namespace ()

librdf_uri *        librdf_get_concept_schema_namespace (librdf_world *world);

Get a shared librdf_uri for the RDF Schema namespace.

world :

librdf world object

Returns :

librdf_uri pointer or NULL on failure.

LIBRDF_MS_Alt

#define LIBRDF_MS_Alt

RDF namespace concept librdf_node Alt


LIBRDF_MS_Alt_URI

#define LIBRDF_MS_Alt_URI

RDF namespace concept URI Alt


LIBRDF_MS_Bag

#define LIBRDF_MS_Bag

RDF namespace concept librdf_node Bag


LIBRDF_MS_Bag_URI

#define LIBRDF_MS_Bag_URI

RDF namespace concept URI Bag


LIBRDF_MS_Description

#define LIBRDF_MS_Description

RDF namespace concept librdf_node Description


LIBRDF_MS_Description_URI

#define LIBRDF_MS_Description_URI

RDF namespace concept URI Description


LIBRDF_MS_Property

#define LIBRDF_MS_Property

RDF namespace concept librdf_node Property


LIBRDF_MS_Property_URI

#define LIBRDF_MS_Property_URI

RDF namespace concept URI Property


LIBRDF_MS_RDF

#define LIBRDF_MS_RDF

RDF namespace concept librdf_node RDF


LIBRDF_MS_RDF_URI

#define LIBRDF_MS_RDF_URI

RDF namespace concept URI RDF


LIBRDF_MS_Seq

#define LIBRDF_MS_Seq

RDF namespace concept librdf_node Seq


LIBRDF_MS_Seq_URI

#define LIBRDF_MS_Seq_URI

RDF namespace concept URI Seq


LIBRDF_MS_Statement

#define LIBRDF_MS_Statement

RDF namespace concept librdf_node Statement


LIBRDF_MS_Statement_URI

#define LIBRDF_MS_Statement_URI

RDF namespace concept URI Statement


LIBRDF_MS_aboutEach

#define LIBRDF_MS_aboutEach

RDF namespace concept librdf_node aboutEach


LIBRDF_MS_aboutEachPrefix

#define LIBRDF_MS_aboutEachPrefix

RDF namespace concept librdf_node aboutEachPrefix


LIBRDF_MS_aboutEachPrefix_URI

#define LIBRDF_MS_aboutEachPrefix_URI

RDF namespace concept URI aboutEachPrefix


LIBRDF_MS_aboutEach_URI

#define LIBRDF_MS_aboutEach_URI

RDF namespace concept URI aboutEach


LIBRDF_MS_li

#define LIBRDF_MS_li

RDF namespace concept librdf_node li


LIBRDF_MS_li_URI

#define LIBRDF_MS_li_URI

RDF namespace concept URI li


LIBRDF_MS_object

#define LIBRDF_MS_object

RDF namespace concept librdf_node object


LIBRDF_MS_object_URI

#define LIBRDF_MS_object_URI

RDF namespace concept URI object


LIBRDF_MS_predicate

#define LIBRDF_MS_predicate

RDF namespace concept librdf_node predicate


LIBRDF_MS_predicate_URI

#define LIBRDF_MS_predicate_URI

RDF namespace concept URI predicate


LIBRDF_MS_subject

#define LIBRDF_MS_subject

RDF namespace concept librdf_node subject


LIBRDF_MS_subject_URI

#define LIBRDF_MS_subject_URI

RDF namespace concept URI subject


LIBRDF_MS_type

#define LIBRDF_MS_type

RDF namespace concept librdf_node type


LIBRDF_MS_type_URI

#define LIBRDF_MS_type_URI

RDF namespace concept URI type


LIBRDF_MS_value

#define LIBRDF_MS_value

RDF namespace concept librdf_node value


LIBRDF_MS_value_URI

#define LIBRDF_MS_value_URI

RDF namespace concept URI value


LIBRDF_RS_List

#define LIBRDF_RS_List

RDF namespace concept librdf_node List


LIBRDF_RS_List_URI

#define LIBRDF_RS_List_URI

RDF namespace concept URI List


LIBRDF_RS_XMLLiteral

#define LIBRDF_RS_XMLLiteral

RDF namespace concept librdf_node XMLLiteral


LIBRDF_RS_XMLLiteral_URI

#define LIBRDF_RS_XMLLiteral_URI

RDF namespace concept URI XMLLiteral


LIBRDF_RS_first

#define LIBRDF_RS_first

RDF namespace concept librdf_node first


LIBRDF_RS_first_URI

#define LIBRDF_RS_first_URI

RDF namespace concept URI first


LIBRDF_RS_nil

#define LIBRDF_RS_nil

RDF namespace concept librdf_node nil


LIBRDF_RS_nil_URI

#define LIBRDF_RS_nil_URI

RDF namespace concept URI nil


LIBRDF_RS_nodeID

#define LIBRDF_RS_nodeID

RDF namespace concept librdf_node nodeID


LIBRDF_RS_nodeID_URI

#define LIBRDF_RS_nodeID_URI

RDF namespace concept URI nodeID


LIBRDF_RS_rest

#define LIBRDF_RS_rest

RDF namespace concept librdf_node rest


LIBRDF_RS_rest_URI

#define LIBRDF_RS_rest_URI

RDF namespace concept URI rest


LIBRDF_S_Class

#define LIBRDF_S_Class

RDFS namespace concept Class


LIBRDF_S_Class_URI

#define LIBRDF_S_Class_URI

RDFS namespace concept URI Class


LIBRDF_S_ConstraintProperty

#define LIBRDF_S_ConstraintProperty

RDFS namespace concept ConstraintProperty


LIBRDF_S_ConstraintProperty_URI

#define LIBRDF_S_ConstraintProperty_URI

RDFS namespace concept URI ConstraintProperty


LIBRDF_S_ConstraintResource

#define LIBRDF_S_ConstraintResource

RDFS namespace concept ConstraintResource


LIBRDF_S_ConstraintResource_URI

#define LIBRDF_S_ConstraintResource_URI

RDFS namespace concept URI ConstraintResource


LIBRDF_S_Container

#define LIBRDF_S_Container

RDFS namespace concept Container


LIBRDF_S_ContainerMembershipProperty

#define LIBRDF_S_ContainerMembershipProperty

RDFS namespace concept ContainerMembershipProperty


LIBRDF_S_ContainerMembershipProperty_URI

#define LIBRDF_S_ContainerMembershipProperty_URI

RDFS namespace concept URI ContainerMembershipProperty


LIBRDF_S_Container_URI

#define LIBRDF_S_Container_URI

RDFS namespace concept URI Container


LIBRDF_S_Literal

#define LIBRDF_S_Literal

RDFS namespace concept Literal


LIBRDF_S_Literal_URI

#define LIBRDF_S_Literal_URI

RDFS namespace concept URI Literal


LIBRDF_S_Resource

#define LIBRDF_S_Resource

RDFS namespace concept Resource


LIBRDF_S_Resource_URI

#define LIBRDF_S_Resource_URI

RDFS namespace concept URI Resource


LIBRDF_S_comment

#define LIBRDF_S_comment

RDFS namespace concept comment


LIBRDF_S_comment_URI

#define LIBRDF_S_comment_URI

RDFS namespace concept URI comment


LIBRDF_S_domain

#define LIBRDF_S_domain

RDFS namespace concept domain


LIBRDF_S_domain_URI

#define LIBRDF_S_domain_URI

RDFS namespace concept URI domain


LIBRDF_S_isDefinedBy

#define LIBRDF_S_isDefinedBy

RDFS namespace concept isDefinedBy


LIBRDF_S_isDefinedBy_URI

#define LIBRDF_S_isDefinedBy_URI

RDFS namespace concept URI isDefinedBy


LIBRDF_S_label

#define LIBRDF_S_label

RDFS namespace concept label


LIBRDF_S_label_URI

#define LIBRDF_S_label_URI

RDFS namespace concept URI label


LIBRDF_S_range

#define LIBRDF_S_range

RDFS namespace concept range


LIBRDF_S_range_URI

#define LIBRDF_S_range_URI

RDFS namespace concept URI range


LIBRDF_S_seeAlso

#define LIBRDF_S_seeAlso

RDFS namespace concept seeAlso


LIBRDF_S_seeAlso_URI

#define LIBRDF_S_seeAlso_URI

RDFS namespace concept URI seeAlso


LIBRDF_S_subClassOf

#define LIBRDF_S_subClassOf

RDFS namespace concept subClassOf


LIBRDF_S_subClassOf_URI

#define LIBRDF_S_subClassOf_URI

RDFS namespace concept URI subClassOf


LIBRDF_S_subPropertyOf

#define LIBRDF_S_subPropertyOf

RDFS namespace concept subPropertyOf


LIBRDF_S_subPropertyOf_URI

#define LIBRDF_S_subPropertyOf_URI

RDFS namespace concept URI subPropertyOf


LIBRDF_URI_RDF_MS

#define LIBRDF_URI_RDF_MS

librdf_uri for rdf: namespace. Copy with librdf_new_uri_from_uri() before using.


LIBRDF_URI_RDF_SCHEMA

#define LIBRDF_URI_RDF_SCHEMA

librdf_uri for rdfs: namespace. Copy with librdf_new_uri_from_uri() before using.

See Also

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

Copyright 2000-2023 Dave Beckett