Top | ![]() |
![]() |
![]() |
![]() |
rasqal_data_graph *
rasqal_new_data_graph_from_data_graph (rasqal_data_graph *dg
);
Copy Constructor - create a new rasqal_data_graph object from an existing rasqal_data_graph object.
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
);
Constructor - create a new rasqal_data_graph from iostream content
The name_uri
is used when the flags are RASQAL_DATA_GRAPH_NAMED
.
The base_uri
is used to provide the Raptor parser a base URI. If
a base URI is required but none is given, the parsing will fail
and the query that uses this data source will fail.
world |
rasqal_world object |
|
iostr |
source graph format iostream |
|
base_uri |
base URI for iostream content |
|
name_uri |
name of graph (or NULL) |
|
flags |
||
format_type |
MIME Type of data format at |
|
format_name |
Raptor parser Name of data format at |
|
format_uri |
URI of data format at |
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
);
Constructor - create a new rasqal_data_graph.
The name_uri is only used when the flags are RASQAL_DATA_GRAPH_NAMED
.
void
rasqal_free_data_graph (rasqal_data_graph *dg
);
Destructor - destroy a rasqal_data_graph object.
int rasqal_data_graph_print (rasqal_data_graph *dg
,FILE *fh
);
Print a Rasqal data graph in a debug format.
The print debug format may change in any release.
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.