Top | ![]() |
![]() |
![]() |
![]() |
Data graphs are used in the query to describe RDF graphs that can be used to query against. The graphs can be used either with raptor_uri to name the graph, or without a name. The query language determines which graphs are used in the query.
rasqal_data_graph *
rasqal_new_data_graph_from_data_graph (rasqal_data_graph *dg
);
rasqal_data_graph * rasqal_new_data_graph_from_iostream (rasqal_world *world
,raptor_iostream *iostr
,raptor_uri *base_uri
,raptor_uri *name_uri
,unsigned int flags
,const char *format_type
,const char *format_name
,raptor_uri *format_uri
);
rasqal_data_graph * rasqal_new_data_graph_from_uri (rasqal_world *world
,raptor_uri *uri
,raptor_uri *name_uri
,unsigned int flags
,const char *format_type
,const char *format_name
,raptor_uri *format_uri
);
typedef struct { rasqal_world* world; raptor_uri* uri; raptor_uri* name_uri; unsigned int flags; char* format_type; char* format_name; raptor_uri* format_uri; raptor_iostream* iostr; raptor_uri* base_uri; int usage; } rasqal_data_graph;
A source of RDF data for querying.
If iostr
is present, the graph can be constructed by parsing the
iostream and using base_uri
as a base uri. Otherwise the graph
can be constructed from the graph at URI uri
.
In either case the name_uri
is the graph name as long as flags
is RASQAL_DATA_GRAPH_NAMED
rasqal_world * |
rasqal_world object |
|
raptor_uri * |
source URI |
|
raptor_uri * |
name of graph for |
|
MIME Type of data format at |
||
Raptor parser Name of data format at |
||
raptor_uri * |
URI of data format at |
|
raptor_iostream * |
Raptor iostream for content, overriding |
|
raptor_uri * |
base URI for reading from iostream |
|
usage count of this object |
Flags for the type of rasqal_data_graph.
These are used by rasqal_new_data_graph_from_uri()
and
rasqal_new_data_graph_from_iostream()
. See rasqal_data_graph.