redland/0000755000176200001440000000000013550630073011665 5ustar liggesusersredland/NAMESPACE0000644000176200001440000002027413546477470013130 0ustar liggesusers# Generated by roxygen2: do not edit by hand S3method(roclet_output,roclet_mergeNamespace) S3method(roclet_process,roclet_mergeNamespace) S3method(roclet_tags,roclet_mergeNamespace) export(addStatement) export(executeQuery) export(freeModel) export(freeParser) export(freeQuery) export(freeQueryResults) export(freeSerializer) export(freeStatement) export(freeStorage) export(freeWorld) export(getBlankNodeId) export(getNodeType) export(getNodeValue) export(getQueryResultLimit) export(getResults) export(getTermType) export(is.null.externalptr) export(mergeNamespace_roclet) export(parseFileIntoModel) export(serializeToCharacter) export(serializeToFile) export(setNameSpace) export(setQueryResultLimit) export(writeResults) exportClasses(Model) exportClasses(Node) exportClasses(Parser) exportClasses(Query) exportClasses(QueryResults) exportClasses(Serializer) exportClasses(Statement) exportClasses(Storage) exportClasses(World) exportMethods(initialize) import(methods) import(roxygen2) useDynLib(redland, .registration = TRUE) export(librdf_copyright_string) export(librdf_copyright_string_get) export(librdf_digest_final) export(librdf_digest_init) export(librdf_digest_to_string) export(librdf_digest_update) export(librdf_digest_update_string) export(librdf_free_digest) export(librdf_free_hash) export(librdf_free_iterator) export(librdf_free_model) export(librdf_free_node) export(librdf_free_parser) export(librdf_free_query) export(librdf_free_query_results) export(librdf_free_serializer) export(librdf_free_statement) export(librdf_free_storage) export(librdf_free_stream) export(librdf_free_uri) export(librdf_free_world) export(librdf_hash_to_string) export(librdf_internal_test_error) export(librdf_internal_test_warning) export(librdf_iterator_end) export(librdf_iterator_get_context) export(librdf_iterator_get_object) export(librdf_iterator_next) export(librdf_log_message_code) export(librdf_log_message_facility) export(librdf_log_message_level) export(librdf_log_message_locator) export(librdf_log_message_message) export(librdf_model_add) export(librdf_model_add_statement) export(librdf_model_add_statements) export(librdf_model_add_string_literal_statement) export(librdf_model_add_typed_literal_statement) export(librdf_model_as_stream) export(librdf_model_contains_context) export(librdf_model_contains_statement) export(librdf_model_context_add_statement) export(librdf_model_context_add_statements) export(librdf_model_context_as_stream) export(librdf_model_context_remove_statement) export(librdf_model_context_remove_statements) export(librdf_model_find_statements) export(librdf_model_find_statements_in_context) export(librdf_model_get_arc) export(librdf_model_get_arcs) export(librdf_model_get_arcs_in) export(librdf_model_get_arcs_out) export(librdf_model_get_contexts) export(librdf_model_get_feature) export(librdf_model_get_source) export(librdf_model_get_sources) export(librdf_model_get_target) export(librdf_model_get_targets) export(librdf_model_has_arc_in) export(librdf_model_has_arc_out) export(librdf_model_load) export(librdf_model_query_execute) export(librdf_model_remove_statement) export(librdf_model_set_feature) export(librdf_model_size) export(librdf_model_sync) export(librdf_model_to_string) export(librdf_model_transaction_commit) export(librdf_model_transaction_rollback) export(librdf_model_transaction_start) export(librdf_new_digest) export(librdf_new_hash) export(librdf_new_hash_from_array_of_strings) export(librdf_new_hash_from_string) export(librdf_new_model) export(librdf_new_model_from_model) export(librdf_new_model_with_options) export(librdf_new_node) export(librdf_new_node_from_blank_identifier) export(librdf_new_node_from_literal) export(librdf_new_node_from_node) export(librdf_new_node_from_normalised_uri_string) export(librdf_new_node_from_typed_literal) export(librdf_new_node_from_uri) export(librdf_new_node_from_uri_local_name) export(librdf_new_node_from_uri_string) export(librdf_new_parser) export(librdf_new_query) export(librdf_new_query_from_query) export(librdf_new_serializer) export(librdf_new_statement) export(librdf_new_statement_from_nodes) export(librdf_new_statement_from_statement) export(librdf_new_storage) export(librdf_new_storage_from_storage) export(librdf_new_uri) export(librdf_new_uri_from_filename) export(librdf_new_uri_from_uri) export(librdf_new_world) export(librdf_node_equals) export(librdf_node_get_blank_identifier) export(librdf_node_get_li_ordinal) export(librdf_node_get_literal_value) export(librdf_node_get_literal_value_as_latin1) export(librdf_node_get_literal_value_datatype_uri) export(librdf_node_get_literal_value_is_wf_xml) export(librdf_node_get_literal_value_language) export(librdf_node_get_type) export(librdf_node_get_uri) export(librdf_node_is_blank) export(librdf_node_is_literal) export(librdf_node_is_resource) export(librdf_parser_check_name) export(librdf_parser_get_accept_header) export(librdf_parser_get_feature) export(librdf_parser_get_namespaces_seen_count) export(librdf_parser_get_namespaces_seen_prefix) export(librdf_parser_get_namespaces_seen_uri) export(librdf_parser_guess_name2) export(librdf_parser_parse_as_stream) export(librdf_parser_parse_counted_string_as_stream) export(librdf_parser_parse_counted_string_into_model) export(librdf_parser_parse_into_model) export(librdf_parser_parse_string_as_stream) export(librdf_parser_parse_string_into_model) export(librdf_parser_set_feature) export(librdf_query_execute) export(librdf_query_get_limit) export(librdf_query_get_offset) export(librdf_query_results_as_stream) export(librdf_query_results_finished) export(librdf_query_results_get_binding_name) export(librdf_query_results_get_binding_value) export(librdf_query_results_get_binding_value_by_name) export(librdf_query_results_get_bindings_count) export(librdf_query_results_get_boolean) export(librdf_query_results_get_count) export(librdf_query_results_is_bindings) export(librdf_query_results_is_boolean) export(librdf_query_results_is_graph) export(librdf_query_results_is_syntax) export(librdf_query_results_next) export(librdf_query_results_to_file2) export(librdf_query_results_to_string2) export(librdf_query_set_limit) export(librdf_query_set_offset) export(librdf_serializer_check_name) export(librdf_serializer_get_feature) export(librdf_serializer_serialize_model_to_file) export(librdf_serializer_serialize_model_to_string) export(librdf_serializer_serialize_stream_to_file) export(librdf_serializer_serialize_stream_to_string) export(librdf_serializer_set_feature) export(librdf_serializer_set_namespace) export(librdf_short_copyright_string) export(librdf_short_copyright_string_get) export(librdf_statement_equals) export(librdf_statement_get_object) export(librdf_statement_get_predicate) export(librdf_statement_get_subject) export(librdf_statement_is_complete) export(librdf_statement_match) export(librdf_statement_set_object) export(librdf_statement_set_predicate) export(librdf_statement_set_subject) export(librdf_stream_end) export(librdf_stream_get_object) export(librdf_stream_next) export(librdf_uri_compare) export(librdf_uri_equals) export(librdf_uri_to_string) export(librdf_version_decimal) export(librdf_version_decimal_get) export(librdf_version_major) export(librdf_version_major_get) export(librdf_version_minor) export(librdf_version_minor_get) export(librdf_version_release) export(librdf_version_release_get) export(librdf_version_string) export(librdf_version_string_get) export(librdf_world_get_feature) export(librdf_world_open) export(librdf_world_set_feature) export(librdf_world_set_logger) export(raptor_locator_byte) export(raptor_locator_column) export(raptor_locator_file) export(raptor_locator_line) export(raptor_locator_uri) export(raptor_version_decimal) export(raptor_version_decimal_get) export(raptor_version_major) export(raptor_version_major_get) export(raptor_version_minor) export(raptor_version_minor_get) export(raptor_version_release) export(raptor_version_release_get) export(raptor_version_string) export(raptor_version_string_get) export(rasqal_version_decimal) export(rasqal_version_decimal_get) export(rasqal_version_major) export(rasqal_version_major_get) export(rasqal_version_minor) export(rasqal_version_minor_get) export(rasqal_version_release) export(rasqal_version_release_get) export(rasqal_version_string) export(rasqal_version_string_get) redland/tools/0000755000176200001440000000000013544473277013043 5ustar liggesusersredland/tools/winlibs.R0000644000176200001440000000055413544473277014641 0ustar liggesusers# Build against mingw-w64 build of redland if(!file.exists("../windows/redland-1.0.17/include/redland.h")){ if(getRversion() < "3.3.0") setInternet2() download.file("https://github.com/rwinlib/redland/archive/v1.0.17.zip", "lib.zip", quiet = TRUE) dir.create("../windows", showWarnings = FALSE) unzip("lib.zip", exdir = "../windows") unlink("lib.zip") } redland/README.md0000644000176200001440000001540413546423567013165 0ustar liggesusers## redland [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/redland)](https://cran.r-project.org/package=redland) - **Authors**: Matthew B. Jones, Peter Slaughter, Jeroen Ooms, Carl Boettiger, and Scott Chamberlain ([NCEAS](http://www.nceas.ucsb.edu)) - [doi:10.5063/F1VM496B](http://doi.org/10.5063/F1VM496B) - **License**: [Apache 2](http://opensource.org/licenses/Apache-2.0) - [Package source code on Github](https://github.com/ropensci/redland-bindings) - [**Submit Bugs and feature requests**](https://github.com/ropensci/redland-bindings/issues) The R package `redland` provides methods to create, query and write information stored in the Resource Description Framework (RDF). An introduction to RDF can be found at http://www.w3.org/TR/rdf-primer. In brief, RDF provides a structured graph consisting of Statements composed of Subject, Predicate, and Object Nodes. This package is implemented as R scripts that provide an R interface (aka "wrapper") to the Redland RDF C libraries that are described at http://librdf.org/docs/api/index.html. Additional information about the software that provides the connection or 'bindings' between R and the Redland RDF C libraries is available at https://github.com/ropensci/redland-bindings/tree/master/R. In this redland R package, S4 classes are used to model RDF data structures. A `redland::Statement` is composed of `redland::Node`s representing the subject, predicate, and object of each triple statement. Statements can be composed into a graph by adding them to a `redland::Model`, which in turn can be serialized and deserialized to RDF's text formats using `redland::Serializer` and `redland::Parser`, respectively. See the `redland_overview` vignette for a brief example of usage. ## Installation Notes The *redland* R package is now available from CRAN. Before the `redland` R package can be installed, the Redland C libraries may need to be installed, depending on the platform type you are installing to and whether or not you wish to install from source. ### Installing on Mac OS X On Mac OS X, the binary build from CRAN can be installed without installing the Redland C libraries by typing the following commands in the R console: ``` install.packages("redland") library(redland) ``` The *redland* R package should be available for use at this point. Alternatively, to install *redland* from source, please continue reading this section. The required Redland C libraries can be installed with either [Mac Ports](https://www.macports.org) package manager or the [HomeBrew](http://brew.sh) package manager. The HomeBrew package manager can be significantly faster to install but either one will work provided the directions shown below are followed. You can check if you have MacPorts installed by entering the following command in a terminal window: ``` port version ``` #### Installing on Mac OS X with Macports If you are already using the MacPorts package manager, you can install *redland* with the following commands, otherwise, it is recommended that you skip to the next section *Installing with HomeBrew*. To install the *redland* R package with MacPorts, enter these commands at a terminal window: ``` sudo port install redland ``` Then enter these commands in the R console: ``` install.packages("redland", type="source") library(redland) ``` Please note that the *install.packages* command specifies a "source" installation. Installing from source is only necessary if Macports is being used, and is not a requirement if Homebrew is used. The *redland* R package should be available for use at this point #### Installing on Mac OS X with HomeBrew On Mac OS X you can use the package management system [HomeBrew](http://brew.sh) to install the necessary libraries. The HomeBrew software can be installed with the following command entered at a terminal window: ``` ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ``` Once HomeBrew has been installed, you can then enter the following command to install the Redland C libraries: ``` brew install redland ``` Next, install the *redland* R package with these commands typed at the R console window: ``` install.packages("redland", type="source") library(redland) ``` The *redland* R package should be available for use at this point. ## Installing on Ubuntu For ubuntu, install the required Redland C libraries: ``` sudo apt-get update sudo apt-get install librdf0 librdf0-dev ``` Then install the R packages from the R console: ``` install.packages("redland") library(redland) ``` ## Installing on Windows For windows, the redland R package is distributed as a binary release, and it is not necessary to install any additional system libraries. To install the R packages from the R console: ``` install.packages("redland") library(redland) ``` ## Example Usage The `redland` library can be used for a wide variety of RDF parsing and creation tasks. Some examples are provided in the `redland_overview` vignette. As a quick start, here is an example that creates an RDF graph using an in-memory storage model, adds some triples, and then serializes the graph to disk. ```r library(redland) # World is the redland mechanism for scoping models world <- new("World") # Storage provides a mechanism to store models; in-memory hashes are convenient for small models storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") # A model is a set of Statements, and is associated with a particular Storage instance model <- new("Model", world=world, storage, options="") # Add some Dublin Core properties to the model dc <- "http://purl.org/dc/elements/1.1/" stmt <- new("Statement", world=world, subject="http://ropensci.org/", predicate=paste0(dc, "title"), object="ROpenSci") addStatement(model, stmt) stmt <- new("Statement", world=world, subject="http://ropensci.org/", predicate=paste0(dc, "language"), object="en") addStatement(model, stmt) stmt <- new("Statement", world=world, subject="http://ropensci.org/", predicate=paste0(dc, "license"), object="https://creativecommons.org/licenses/by/2.0/") addStatement(model, stmt) # Serialize the model to a TTL file serializer <- new("Serializer", world, name="turtle", mimeType="text/turtle") status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") filePath <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".ttl") status <- serializeToFile(serializer, world, model, filePath) readLines(file(filePath)) ``` ## Acknowledgments Work on this package was supported by NSF-ABI grant #1262458 to C. Gries, M. Jones, and S. Collins. [![nceas_footer](https://www.nceas.ucsb.edu/files/newLogo_0.png)](http://www.nceas.ucsb.edu) [![ropensci_footer](http://ropensci.org/public_images/github_footer.png)](http://ropensci.org) redland/man/0000755000176200001440000000000013544502216012440 5ustar liggesusersredland/man/librdf_version_release.Rd0000644000176200001440000000116213544473277017454 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_version_release} \alias{librdf_version_release} \title{Library release version number as a decimal integer.} \usage{ librdf_version_release ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ integer } \description{ Library release version number as a decimal integer. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_query.Rd0000644000176200001440000000171113544473277016305 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_query} \alias{librdf_new_query} \title{Constructor - create a new librdf_query object.} \usage{ librdf_new_query ( world, name, uri, query_string, base_uri ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{the name identifying the query language ("character")} \item{uri}{the URI identifying the query language (or NULL) ("_p_librdf_uri_s")} \item{query_string}{the query string ("character")} \item{base_uri}{the base URI of the query string (or NULL) ("_p_librdf_uri_s")} } \value{ _p_librdf_query } \description{ Constructor - create a new librdf_query object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_release_get.Rd0000644000176200001440000000077213544473277020366 0ustar liggesusers\name{raptor_version_release_get} \alias{raptor_version_release_get} \title{Raptor library release.} \usage{ raptor_version_release_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get Raptor library release. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_short_copyright_string_get.Rd0000644000176200001440000000105113544473277021740 0ustar liggesusers\name{librdf_short_copyright_string_get} \alias{librdf_short_copyright_string_get} \title{Return Redland librdf copyright string} \usage{ librdf_short_copyright_string_get( .copy ) } \arguments{ \item{.copy}{logical} } \value{ character } \description{ Return Redland librdf copyright string } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_blank_identifier.Rd0000644000176200001440000000127213544473277021426 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_blank_identifier} \alias{librdf_node_get_blank_identifier} \title{Get the blank node identifier as a UTF-8 encoded string.} \usage{ librdf_node_get_blank_identifier ( node ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} } \value{ character } \description{ Get the blank node identifier as a UTF-8 encoded string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/mergeNamespace_roclet.Rd0000644000176200001440000000304313544473277017231 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeNamespace_roclet.R \name{mergeNamespace_roclet} \alias{mergeNamespace_roclet} \title{A custom Roxygen roclet that adds Redland RDF functions to NAMESPACE file generated by Roxygen.} \usage{ mergeNamespace_roclet(x, ...) } \arguments{ \item{x}{a roclet} \item{...}{additional parameters} } \description{ The redland package uses the SWIG (Simplified Wrapper and Interface Generator) to create the bindings between the Redland RDF C/C++ libraries and R. SWIG creates a NAMESPACE file that contains the function names for the librdf wrapper that it creates, but as of swig 3.0.2 this NAMESPACE file is incorrect and will also be overwritten by Roxygen when 'roxygenize()' or 'devtools:document()' is called, as the wrapper R code doesn't contain Roxygen export annotations used by Roxygen to build the namespace file. To allow for building a NAMESPACE file from all programs in the redland package, this roclet determines the set of wrapper R functions and adds these to the Roxygen generated NAMESPACE file that contains all names from the native R code in the redland package. } \details{ The following line must be present in the DESCRIPTION file for this roclet to be called automatically when 'roxygen2::roxygenize()' or 'devtools::document()' is called: Roxygen: list(roclets = c("collate", "rd", "namespace", "mergeNamespace_roclet")) The 'namespace' roclet must always run before the 'mergeNamespace' roclet. } \examples{ \dontrun{ roxygen2::roxygenize() devtools::document() } } redland/man/Model-initialize.Rd0000644000176200001440000000104013546477430016134 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Model.R \docType{methods} \name{initialize,Model-method} \alias{initialize,Model-method} \alias{Model-initialize} \title{Constructor for a Model object.} \usage{ \S4method{initialize}{Model}(.Object, world, storage, options) } \arguments{ \item{.Object}{a Node object} \item{world}{a World object} \item{storage}{a Storage object} \item{options}{extra options for model initialization} } \value{ the World object } \description{ Constructor for a Model object. } redland/man/Storage-class.Rd0000644000176200001440000000142613544473277015457 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Storage.R \docType{class} \name{Storage-class} \alias{Storage-class} \alias{Storage} \title{A Redland Storage object} \description{ A Redland Storage object } \section{Slots}{ \describe{ \item{\code{librdf_storage}}{A redland storage object} \item{\code{type}}{the storage type to create, i.e. "hashes", "mysql", "postgresql", ...} }} \section{Methods}{ \itemize{ \item{\code{\link{Storage-initialize}}}{: Initialize a Storage object} \item{\code{\link{freeStorage}}}{: Free memory used by a librdf storage object} } } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/librdf_free_hash.Rd0000644000176200001440000000114513544473277016214 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_hash} \alias{librdf_free_hash} \title{Destructor - destroy a librdf_hash object.} \usage{ librdf_free_hash ( hash ) } \arguments{ \item{hash}{hash object ("_p_librdf_hash_s")} } \value{ void } \description{ Destructor - destroy a librdf_hash object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_get_offset.Rd0000644000176200001440000000124613544473277017644 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_get_offset} \alias{librdf_query_get_offset} \title{Get the query-specified offset on results.} \usage{ librdf_query_get_offset ( query, .copy ) } \arguments{ \item{query}{librdf_query query object ("_p_librdf_query")} \item{.copy}{NA} } \value{ integer } \description{ Get the query-specified offset on results. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_targets.Rd0000644000176200001440000000160113544473277017755 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_targets} \alias{librdf_model_get_targets} \title{Return the targets (objects) of an arc in an RDF graph given source (subject) and arc (predicate).} \usage{ librdf_model_get_targets ( model, source, arc ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{source}{librdf_node source ("_p_librdf_node_s")} \item{arc}{librdf_node arc ("_p_librdf_node_s")} } \value{ _p_librdf_iterator_s } \description{ Return the targets (objects) of an arc in an RDF graph given source (subject) and arc (predicate). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_locator_file.Rd0000644000176200001440000000101313544473277016771 0ustar liggesusers\name{raptor_locator_file} \alias{raptor_locator_file} \title{Get file name from locator.} \usage{ raptor_locator_file ( locator ) } \arguments{ \item{locator}{raptor locator ("_p_raptor_locator")} } \value{ character } \description{ Get file name from locator. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_iterator.Rd0000644000176200001440000000122013544473277017114 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_iterator} \alias{librdf_free_iterator} \title{Destructor - destroy a librdf_iterator object.} \usage{ librdf_free_iterator ( s_arg1 ) } \arguments{ \item{s_arg1}{the librdf_iterator object ("_p_librdf_iterator_s")} } \value{ void } \description{ Destructor - destroy a librdf_iterator object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_context_remove_statement.Rd0000644000176200001440000000155213544473277022577 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_context_remove_statement} \alias{librdf_model_context_remove_statement} \title{Remove a statement from a model in a context.} \usage{ librdf_model_context_remove_statement ( model, context, statement, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{context}{librdf_node context ("_p_librdf_node_s")} \item{statement}{librdf_statement statement ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Remove a statement from a model in a context. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_as_stream.Rd0000644000176200001440000000123513544473277017426 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_as_stream} \alias{librdf_model_as_stream} \title{List the model contents as a stream of statements.} \usage{ librdf_model_as_stream ( model ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} } \value{ _p_librdf_stream_s } \description{ List the model contents as a stream of statements. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_internal_test_warning.Rd0000644000176200001440000000116113544473277020666 0ustar liggesusers\name{librdf_internal_test_warning} \alias{librdf_internal_test_warning} \title{For internal testing, not part of public API} \usage{ librdf_internal_test_warning ( world ) } \arguments{ \item{world}{librdf_world ("_p_librdf_world_s")} } \value{ void } \description{ This funciton is for internal testing of the Redland software and is not part of the public API. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_digest_to_string.Rd0000644000176200001440000000122213544473277017633 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_digest_to_string} \alias{librdf_digest_to_string} \title{Get a string representation of the digest object.} \usage{ librdf_digest_to_string ( digest ) } \arguments{ \item{digest}{the digest ("_p_librdf_digest_s")} } \value{ character } \description{ Get a string representation of the digest object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_source.Rd0000644000176200001440000000156013544473277017610 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_source} \alias{librdf_model_get_source} \title{Return one source (subject) of arc in an RDF graph given arc (predicate) and target (object).} \usage{ librdf_model_get_source ( model, arc, target ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{arc}{librdf_node arc ("_p_librdf_node_s")} \item{target}{librdf_node target ("_p_librdf_node_s")} } \value{ _p_librdf_node_s } \description{ Return one source (subject) of arc in an RDF graph given arc (predicate) and target (object). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_minor.Rd0000644000176200001440000000075713544473277017236 0ustar liggesusers\name{raptor_version_minor} \alias{raptor_version_minor} \title{Raptor library minor version.} \usage{ raptor_version_minor ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Raptor library minor version. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_feature.Rd0000644000176200001440000000131713544473277017743 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_feature} \alias{librdf_model_get_feature} \title{Get the value of a graph feature .} \usage{ librdf_model_get_feature ( model, feature ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{feature}{librdf_uri feature property ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Get the value of a graph feature . } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_digest_update.Rd0000644000176200001440000000134313544473277017111 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_digest_update} \alias{librdf_digest_update} \title{Add more data to the librdf_digest object.} \usage{ librdf_digest_update ( digest, buf, length ) } \arguments{ \item{digest}{the digest ("_p_librdf_digest_s")} \item{buf}{the data buffer ("character")} \item{length}{the length of the data ("integer")} } \value{ void } \description{ Add more data to the librdf_digest object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_contains_statement.Rd0000644000176200001440000000136013544473277021351 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_contains_statement} \alias{librdf_model_contains_statement} \title{Check for a statement in the model.} \usage{ librdf_model_contains_statement ( model, statement, .copy ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{statement}{the statement ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Check for a statement in the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_release.Rd0000644000176200001440000000076713544473277017507 0ustar liggesusers\name{rasqal_version_release} \alias{rasqal_version_release} \title{Rasqal release version number.} \usage{ rasqal_version_release ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Rasqal release version number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_type.Rd0000644000176200001440000000116013544473277017112 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_type} \alias{librdf_node_get_type} \title{Get the type of the node.} \usage{ librdf_node_get_type ( node, .copy ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Get the type of the node. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_literal.Rd0000644000176200001440000000164413544473277020631 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_literal} \alias{librdf_new_node_from_literal} \title{Constructor - create a new literal librdf_node object.} \usage{ librdf_new_node_from_literal ( world, string, inStrOrNull, is_wf_xml ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{string}{literal UTF-8 encoded string value ("character")} \item{inStrOrNull}{literal XML language (or NULL, empty string) ("character")} \item{is_wf_xml}{non 0 if literal is XML ("integer")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new literal librdf_node object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_is_bindings.Rd0000644000176200001440000000137113544473277021567 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_is_bindings} \alias{librdf_query_results_is_bindings} \title{Test if librdf_query_results is variable bindings format.} \usage{ librdf_query_results_is_bindings ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Test if librdf_query_results is variable bindings format. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/getNodeValue.Rd0000644000176200001440000000167213546477430015332 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Node.R \docType{methods} \encoding{UTF-8} \name{getNodeValue} \alias{getNodeValue} \alias{getNodeValue,Node-method} \title{Get the value of the node as a string} \usage{ getNodeValue(.Object) \S4method{getNodeValue}{Node}(.Object) } \arguments{ \item{.Object}{a Node object} } \value{ a string representation of the Node's value } \description{ Get the value of the node as a string } \details{ The value of the node is returned as a string. If the node type is 'blank', then the blank node identifier is returned. If the node type is 'literal', then the literal value is returned with the form ""@, e.g. "¡Hola, amigo! ¿Cómo estás?"@es". If the node type is 'uri' then the value is returned as a string. } \examples{ world <- new("World") node <- new("Node", world, literal="¡Hola, amigo! ¿Cómo estás?", language="es") value <- getNodeValue(node) } redland/man/librdf_query_set_limit.Rd0000644000176200001440000000140213544473277017502 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_set_limit} \alias{librdf_query_set_limit} \title{Set the query-specified limit on results.} \usage{ librdf_query_set_limit ( query, limit, .copy ) } \arguments{ \item{query}{librdf_query query object ("_p_librdf_query")} \item{limit}{the limit on results, >=0 to set a limit, <0 to have no limit ("integer")} \item{.copy}{NA} } \value{ integer } \description{ Set the query-specified limit on results. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_stream_get_object.Rd0000644000176200001440000000124713544473277017753 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_stream_get_object} \alias{librdf_stream_get_object} \title{Get the current librdf_statement in the stream.} \usage{ librdf_stream_get_object ( stream ) } \arguments{ \item{stream}{librdf_stream object ("_p_librdf_stream_s")} } \value{ _p_librdf_statement_s } \description{ Get the current librdf_statement in the stream. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_sync.Rd0000644000176200001440000000120313544473277016417 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_sync} \alias{librdf_model_sync} \title{Synchronise the model to the model implementation.} \usage{ librdf_model_sync ( model ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} } \value{ void } \description{ Synchronise the model to the model implementation. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_locator_line.Rd0000644000176200001440000000105313544473277017005 0ustar liggesusers\name{raptor_locator_line} \alias{raptor_locator_line} \title{Get line number from locator.} \usage{ raptor_locator_line ( locator, .copy ) } \arguments{ \item{locator}{raptor locator ("_p_raptor_locator")} \item{.copy}{logical} } \value{ integer } \description{ Get line number from locator. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_decimal_get.Rd0000644000176200001440000000103413544473277020310 0ustar liggesusers\name{rasqal_version_decimal_get} \alias{rasqal_version_decimal_get} \title{Get the Rasqal version as a decimal number.} \usage{ rasqal_version_decimal_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get the Rasqal version as a decimal number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/World-class.Rd0000644000176200001440000000137013544473277015140 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/World.R \docType{class} \name{World-class} \alias{World-class} \alias{World} \title{A Redland World object, used to initialize the Redland RDF library.} \description{ A World object is the top level object in the Redland RDF library implementation, so it contains all other objects needed to process RDF Models. } \section{Slots}{ \describe{ \item{\code{librdf_world}}{A redland world object} }} \section{Methods}{ \itemize{ \item{\code{\link{World-initialize}}}{: Initialize a World object} \item{\code{\link{freeWorld}}}{: Free memory used by a librdf world object} } } \examples{ world <- new("World") } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/freeWorld.Rd0000644000176200001440000000140113546477430014667 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/World.R \docType{methods} \name{freeWorld} \alias{freeWorld} \alias{freeWorld,World-method} \title{Free memory used by a librdf world object} \usage{ freeWorld(.Object) \S4method{freeWorld}{World}(.Object) } \arguments{ \item{.Object}{a World object} } \description{ Free memory used by a librdf world object } \details{ After this method is called, the World object is no longer usable and should be deleted \code{"rm(world)"} and a new object created. } \examples{ world <- new("World") # At this point we would perform some operations using the world object. # When the world object is no longer needed, we can free the resources it has allocated. result <- freeWorld(world) rm(world) } redland/man/librdf_query_set_offset.Rd0000644000176200001440000000141213544473277017653 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_set_offset} \alias{librdf_query_set_offset} \title{Set the query-specified offset on results.} \usage{ librdf_query_set_offset ( query, offset, .copy ) } \arguments{ \item{query}{librdf_query query object ("_p_librdf_query")} \item{offset}{offset for results, >=0 to set an offset, <0 to have no offset ("integer")} \item{.copy}{NA} } \value{ integer } \description{ Set the query-specified offset on results. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/getResults.Rd0000644000176200001440000000354413546477430015111 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{getResults} \alias{getResults} \alias{getResults,Query-method} \title{Return all query results} \usage{ getResults(.Object, model, ...) \S4method{getResults}{Query}(.Object, model, formatName = "rdfxml") } \arguments{ \item{.Object}{a Query object} \item{model}{a Model object} \item{...}{additional parameters} \item{formatName}{a string specifying the RDF format name. Currently the supported formats are "rdfxml" ,"turtle", "json", "csv"} } \description{ Return all query results } \details{ After this method is called, the Query object is no longer usable and should be deleted \code{"rm(query)"} and a new object created. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") stmt <- new("Statement", world=world, subject="https://orcid.org/0000-0002-2192-403X", predicate="http://www.w3.org/ns/prov#Agent", object="slaughter", objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") #objectType="literal", language="en") status <- addStatement(model, stmt) queryString <- paste("PREFIX orcid: ", "PREFIX dataone: ", "PREFIX prov: ", "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) # Return all results as a string results <- getResults(query, model, "rdfxml") results <- getResults(query, model, "turtle") results <- getResults(query, model, "json") # When the query object is no longer needed, the resources it had allocated can be freed. freeQuery(query) rm(query) } redland/man/librdf_serializer_get_feature.Rd0000644000176200001440000000134613544473277021016 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_get_feature} \alias{librdf_serializer_get_feature} \title{Get the value of a serializer feature.} \usage{ librdf_serializer_get_feature ( serializer, feature ) } \arguments{ \item{serializer}{serializer object ("_p_librdf_serializer_s")} \item{feature}{URI of feature ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Get the value of a serializer feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/roclet_output.roclet_mergeNamespace.Rd0000644000176200001440000000161413544473277022142 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeNamespace_roclet.R \name{roclet_output.roclet_mergeNamespace} \alias{roclet_output.roclet_mergeNamespace} \title{Roxygen output function that merges a base NAMESPACE file with the Roxygen dynamically created NAMSPACE file} \usage{ \method{roclet_output}{roclet_mergeNamespace}(x, results, base_path, ...) } \arguments{ \item{x}{the currently running roclet} \item{results}{the list of items to process that was generated by the roc_process.mergedNamespace function} \item{base_path}{the base directory path of the package} \item{...}{additional parameters} } \description{ The 'roclet_output' function handles output of the results from the 'roc_process' function. This function merges the NAMESPACE file created by the 'namespace' roclet with the list of Redland RDF functions determined by the 'roc_process' function. } redland/man/librdf_statement_set_predicate.Rd0000644000176200001440000000133313544473277021166 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_set_predicate} \alias{librdf_statement_set_predicate} \title{Set the statement predicate.} \usage{ librdf_statement_set_predicate ( statement, predicate ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} \item{predicate}{librdf_node of predicate ("_p_librdf_node_s")} } \value{ void } \description{ Set the statement predicate. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_serializer_set_feature.Rd0000644000176200001440000000146013544473277021027 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_set_feature} \alias{librdf_serializer_set_feature} \title{Set the value of a serializer feature.} \usage{ librdf_serializer_set_feature ( serializer, feature, value, .copy ) } \arguments{ \item{serializer}{serializer object ("_p_librdf_serializer_s")} \item{feature}{URI of feature ("_p_librdf_uri_s")} \item{value}{value to set ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Set the value of a serializer feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_parse_counted_string_as_stream.Rd0000644000176200001440000000172513544473277024127 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_parse_counted_string_as_stream} \alias{librdf_parser_parse_counted_string_as_stream} \title{Parse a counted string of content to a librdf_stream of statements.} \usage{ librdf_parser_parse_counted_string_as_stream ( parser, string, length, base_uri ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} \item{string}{the string to parse ("character")} \item{length}{length of the string content (must be >0) ("integer")} \item{base_uri}{the base URI to use or NULL ("_p_librdf_uri_s")} } \value{ _p_librdf_stream_s } \description{ Parse a counted string of content to a librdf_stream of statements. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/QueryResults-class.Rd0000644000176200001440000000136413544473277016543 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/QueryResults.R \docType{class} \name{QueryResults-class} \alias{QueryResults-class} \alias{QueryResults} \title{A Redland QueryResults object is used to inspect query results from a Query object.} \description{ The QueryResults object contains the RDF statements that were returned from a query on an RDF model. } \section{Slots}{ \describe{ \item{\code{librdf_query_results}}{A redland query object} }} \section{Methods}{ \itemize{ \item{\code{\link{QueryResults-initialize}}}{: Initialize a QueryResults object.} \item{\code{\link{freeQueryResults}}}{: Free memory used by a librdf query result.} } } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/librdf_new_serializer.Rd0000644000176200001440000000167313544473277017320 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_serializer} \alias{librdf_new_serializer} \title{Constructor - create a new librdf_serializer object.} \usage{ librdf_new_serializer ( world, name, mime_type, type_uri ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{the serializer factory name (or NULL or empty string if don't care) ("character")} \item{mime_type}{the MIME type of the syntax (NULL if not used) ("character")} \item{type_uri}{URI of syntax (NULL if not used) ("_p_librdf_uri_s")} } \value{ _p_librdf_serializer_s } \description{ Constructor - create a new librdf_serializer object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/roclet_process.roclet_mergeNamespace.Rd0000644000176200001440000000145513546477430022260 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeNamespace_roclet.R \name{roclet_process.roclet_mergeNamespace} \alias{roclet_process.roclet_mergeNamespace} \title{Roxygen process function for the 'mergeNamespace' roclet} \usage{ \method{roclet_process}{roclet_mergeNamespace}(x, blocks, env, base_path, global_options = list()) } \arguments{ \item{x}{the currently running roclet} \item{blocks}{the documentation blocks} \item{env}{the current env} \item{base_path}{the top directory of the R package} \item{global_options}{unused by this roclet} } \description{ This function is called by the Roxygen2 roxygenize function. } \details{ This function loads the Redland interface file and tests each loaded function to see if it should be exported via the NAMESPACE file. } redland/man/rasqal_version_major.Rd0000644000176200001440000000075513544473277017174 0ustar liggesusers\name{rasqal_version_major} \alias{rasqal_version_major} \title{Rasqal major version number.} \usage{ rasqal_version_major ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Rasqal major version number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_stream_next.Rd0000644000176200001440000000124313544473277016620 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_stream_next} \alias{librdf_stream_next} \title{Move to the next librdf_statement in the stream.} \usage{ librdf_stream_next ( stream, .copy ) } \arguments{ \item{stream}{librdf_stream object ("_p_librdf_stream_s")} \item{.copy}{NA} } \value{ integer } \description{ Move to the next librdf_statement in the stream. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_add_typed_literal_statement.Rd0000644000176200001440000000214013544473277023201 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_add_typed_literal_statement} \alias{librdf_model_add_typed_literal_statement} \title{Create and add a new statement about a typed literal to the model.} \usage{ librdf_model_add_typed_literal_statement ( model, subject, predicate, string, inStrOrNull, inUriOrNull, .copy ) } \arguments{ \item{model}{model object ("_p_librdf_model_s")} \item{subject}{librdf_node of subject ("_p_librdf_node_s")} \item{predicate}{librdf_node of predicate ("_p_librdf_node_s")} \item{string}{string literal content ("character")} \item{inStrOrNull}{language of literal ("character")} \item{inUriOrNull}{datatype librdf_uri ("_p_librdf_uri_s")} \item{.copy}{NA} } \value{ integer } \description{ Create and add a new statement about a typed literal to the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_execute.Rd0000644000176200001440000000126213544473277017157 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_execute} \alias{librdf_query_execute} \title{Run the query on a model.} \usage{ librdf_query_execute ( query, model ) } \arguments{ \item{query}{librdf_query object ("_p_librdf_query")} \item{model}{model to operate query on ("_p_librdf_model_s")} } \value{ _p_librdf_query_results } \description{ Run the query on a model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Statement-class.Rd0000644000176200001440000000472013544473277016017 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Statement.R \docType{class} \encoding{UTF-8} \name{Statement-class} \alias{Statement-class} \alias{Statement} \title{An RDF Statement object} \description{ A Statement object is created using the provided subject, predicate and object. } \details{ A Statement object can be created from Node objects that are provided for the subject, predicate and object. An alternative way to create a Statement object is to provide the subject, predicate and object as character values. If this later method is used, the character values will be evaluated to determine the appropriate RDF type for the subject and object. Note that the RDF type for the predicate will always be 'uri' (aka 'resource'). If the automatic determination of RDF types is not desired, then the \code{subjectType} and \code{objectType} parameters can be specified to explicitly set the RDF types. } \section{Slots}{ \describe{ \item{\code{librdf_statement}}{A redland statement object} }} \section{Methods}{ \itemize{ \item{\code{\link{Statement-initialize}}}{: Initialize a Statement object.} \item{\code{\link{getTermType}}}{: Return the redland node type for the specified RDF term in a statement.} \item{\code{\link{freeStatement}}}{: Free memory used by a librdf statement.} } } \examples{ world <- new("World") # Create nodes manually and add to the statment subject <- new("Node", blank="_:myid1", world) predicate <- new("Node", uri="http://www.example.com/isa", world) object <- new("Node", literal="thing", world) stmt <- new("Statement", world, subject, predicate, object) # Create the statement specifying node values directly stmt <- new("Statement", world, subject="http://www.example.com/myevent", predicate="http://example.com/occurredAt", object="Tue Feb 17 14:05:13 PST 2015") stmt <- new("Statement", world, subject=NULL, predicate="http://www.example.com/hasAddr", object="http://www.nothing.com", objectType="literal") stmt <- new("Statement", world, subject="http://www.example.com/BobSmith", predicate="http://www.example.com/says", object="¡Hola, amigo! ¿Cómo estás?", objectType="literal", language="es") } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/freeModel.Rd0000644000176200001440000000162413546477430014647 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Model.R \docType{methods} \name{freeModel} \alias{freeModel} \alias{freeModel,Model-method} \title{Free memory used by a librdf model.} \usage{ freeModel(.Object) \S4method{freeModel}{Model}(.Object) } \arguments{ \item{.Object}{a Model object} } \description{ Free memory used by a librdf model. } \details{ After this method is called, the Model object is no longer usable and should be deleted \code{"rm(model)"} and a new object created. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") # At this point, some operations would be performed with the model. # See '?redland' for a complete example. # When the Model object is no longer needed, the resources it has allocated can be freed. freeModel(model) rm(model) } redland/man/librdf_model_transaction_start.Rd0000644000176200001440000000120613544473277021210 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_transaction_start} \alias{librdf_model_transaction_start} \title{Start a transaction} \usage{ librdf_model_transaction_start ( model, .copy ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Start a transaction } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/freeQueryResults.Rd0000644000176200001440000000102413546477430016270 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/QueryResults.R \docType{methods} \name{freeQueryResults} \alias{freeQueryResults} \alias{freeQueryResults,QueryResults-method} \title{Free memory used by a librdf query results} \usage{ freeQueryResults(.Object) \S4method{freeQueryResults}{QueryResults}(.Object) } \arguments{ \item{.Object}{a QueryResults object} } \description{ After this method is called, the QueryResults object is no longer usable and should be deleted with \code{"rm(query)"}. } redland/man/librdf_model_context_add_statement.Rd0000644000176200001440000000154213544473277022031 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_context_add_statement} \alias{librdf_model_context_add_statement} \title{Add a statement to a model with a context.} \usage{ librdf_model_context_add_statement ( model, context, statement, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{context}{librdf_node context ("_p_librdf_node_s")} \item{statement}{librdf_statement statement object ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Add a statement to a model with a context. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_literal_value.Rd0000644000176200001440000000127113544473277020764 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_literal_value} \alias{librdf_node_get_literal_value} \title{Get the literal value of the node as a UTF-8 encoded string.} \usage{ librdf_node_get_literal_value ( node ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} } \value{ character } \description{ Get the literal value of the node as a UTF-8 encoded string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_storage.Rd0000644000176200001440000000156613544473277016614 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_storage} \alias{librdf_new_storage} \title{Constructor - create a new librdf_storage object.} \usage{ librdf_new_storage ( world, storage_name, name, options_string ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{storage_name}{the storage factory name ("character")} \item{name}{an identifier for the storage ("character")} \item{options_string}{options to initialise storage ("character")} } \value{ _p_librdf_storage_s } \description{ Constructor - create a new librdf_storage object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_serializer_check_name.Rd0000644000176200001440000000133213544473277020574 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_check_name} \alias{librdf_serializer_check_name} \title{Check if a serializer name is known} \usage{ librdf_serializer_check_name ( world, name, .copy ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{name of serializer ("character")} \item{.copy}{NA} } \value{ integer } \description{ Check if a serializer name is known } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/getTermType.Rd0000644000176200001440000000176413546477430015223 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Statement.R \docType{methods} \name{getTermType} \alias{getTermType} \alias{getTermType,Statement,character-method} \title{Return the redland node type for the specified RDF term in a statement} \usage{ getTermType(.Object, term) \S4method{getTermType}{Statement,character}(.Object, term) } \arguments{ \item{.Object}{a Statement object} \item{term}{the RDF term for which the type will be returned} } \description{ After a Statement object has been created, this method can be used to determine the RDF type ("uri", "literal", "blank") that has been assigned to the specified RDF term, i.e. "subject", "predicate", "object". } \examples{ world <- new("World") subject <- new("Node", blank="_:myid1", world) predicate <- new("Node", uri="http://www.example.com/isa", world) object <- new("Node", literal="thing", world) stmt <- new("Statement", world, subject, predicate, object, world) termType <- getTermType(stmt, "predicate") } redland/man/librdf_serializer_serialize_stream_to_file.Rd0000644000176200001440000000165413544473277023571 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_serialize_stream_to_file} \alias{librdf_serializer_serialize_stream_to_file} \title{Write a librdf_stream to a file.} \usage{ librdf_serializer_serialize_stream_to_file ( serializer, name, base_uri, stream, .copy ) } \arguments{ \item{serializer}{the serializer ("_p_librdf_serializer_s")} \item{name}{filename to serialize to ("character")} \item{base_uri}{the base URI to use (or NULL) ("_p_librdf_uri_s")} \item{stream}{the librdf_stream stream to use ("_p_librdf_stream_s")} \item{.copy}{NA} } \value{ integer } \description{ Write a librdf_stream to a file. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_statement_from_nodes.Rd0000644000176200001440000000165513544473277021366 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_statement_from_nodes} \alias{librdf_new_statement_from_nodes} \title{Constructor - create a new librdf_statement from existing librdf_node objects.} \usage{ librdf_new_statement_from_nodes ( world, subject, predicate, object ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{subject}{librdf_node ("_p_librdf_node_s")} \item{predicate}{librdf_node ("_p_librdf_node_s")} \item{object}{librdf_node ("_p_librdf_node_s")} } \value{ _p_librdf_statement_s } \description{ Constructor - create a new librdf_statement from existing librdf_node objects. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_literal_value_language.Rd0000644000176200001440000000123613544473277022630 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_literal_value_language} \alias{librdf_node_get_literal_value_language} \title{Get the XML language of the node.} \usage{ librdf_node_get_literal_value_language ( node ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} } \value{ character } \description{ Get the XML language of the node. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_check_name.Rd0000644000176200001440000000130213544473277017714 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_check_name} \alias{librdf_parser_check_name} \title{Check if a parser name is known} \usage{ librdf_parser_check_name ( world, name, .copy ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{name of parser ("character")} \item{.copy}{NA} } \value{ integer } \description{ Check if a parser name is known } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_literal_value_is_wf_xml.Rd0000644000176200001440000000132513544473277023033 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_literal_value_is_wf_xml} \alias{librdf_node_get_literal_value_is_wf_xml} \title{Get the XML well-formness property of the node.} \usage{ librdf_node_get_literal_value_is_wf_xml ( node, .copy ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Get the XML well-formness property of the node. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_version_major_get.Rd0000644000176200001440000000103513544473277020002 0ustar liggesusers\name{librdf_version_major_get} \alias{librdf_version_major_get} \title{Return the Redland librdf major version number} \usage{ librdf_version_major_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Return the Redland librdf major version number } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_log_message_code.Rd0000644000176200001440000000123013544473277017542 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_log_message_code} \alias{librdf_log_message_code} \title{Retrieve error code from log message.} \usage{ librdf_log_message_code ( message, .copy ) } \arguments{ \item{message}{log message ("_p_librdf_log_message")} \item{.copy}{NA} } \value{ integer } \description{ Retrieve error code from log message. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Query-class.Rd0000644000176200001440000000476613544473277015172 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{class} \name{Query-class} \alias{Query-class} \alias{Query} \title{Query an RDF model} \description{ The Query class is used to execute a query on a Model object using the default query language SPARQL. For more information, please refer to \url{http://librdf.org/rasqal/} for details on supported query languages. } \details{ A Query is executed using the executeQuery method, which returns a QueryResults object that can be iterated over the query solution sequence. } \section{Slots}{ \describe{ \item{\code{librdf_query}}{A redland query object} \item{\code{librdf_world}}{A redland world object} }} \section{Methods}{ \itemize{ \item{\code{\link{Query-initialize}}}{: Initialize a Query object.} \item{\code{\link{executeQuery}}}{: Execute a query.} \item{\code{\link{setQueryResultLimit}}}{: Set limit on returned query results.} \item{\code{\link{getQueryResultLimit}}}{: Get the query result limit.} \item{\code{\link{getResults}}}{: Return all query results.} \item{\code{\link{writeResults}}}{: Write query results to a file.} \item{\code{\link{freeParser}}}{: Free memory used by a librdf query.} } } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") stmt <- new("Statement", world=world, subject="https://cn.dataone.org/cn/v1/resolve/urn:uuid:274a0c5c-3082-4562-bbd3-2b1288768cac", predicate="http://www.w3.org/ns/prov#hadPlan", object="https://cn.dataone.org/cn/v1/resolve/urn:uuid:01305f45-f22b-40c8-8d27-00357d01e4a5") status <- addStatement(model, stmt) stmt <- new("Statement", world=world, subject="https://orcid.org/0000-0002-2192-403X", predicate="http://www.w3.org/ns/prov#Agent", object="slaughter", objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") status <- addStatement(model, stmt) queryString <- paste("PREFIX orcid: ", "PREFIX dataone: ", "PREFIX prov: ", "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) # Return all results as a string results <- getResults(query, model, "rdfxml") } \references{ www.example.com } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/Statement-initialize.Rd0000644000176200001440000000207113546477430017045 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Statement.R \docType{methods} \name{initialize,Statement-method} \alias{initialize,Statement-method} \alias{Statement-initialize} \title{Construct a Statement object.} \usage{ \S4method{initialize}{Statement}(.Object, world, subject, predicate, object, subjectType = as.character(NA), objectType = as.character(NA), datatype_uri = as.character(NA), language = as.character(NA)) } \arguments{ \item{.Object}{the Statement object} \item{world}{a World object} \item{subject}{a Node object} \item{predicate}{a Node object} \item{object}{a Node object} \item{subjectType}{the Node type of the subject, i.e. "blank", "uri"} \item{objectType}{the Node type of the object, i.e. "blank", "uri", "literal"} \item{datatype_uri}{the datatype URI to associate with a object literal value} \item{language}{a character value specifying the RDF language tag for an object literal value (excluding the "@" symbol), i.e. "fr"} } \value{ the Statement object } \description{ Construct a Statement object. } redland/man/librdf_free_node.Rd0000644000176200001440000000115013544473277016212 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_node} \alias{librdf_free_node} \title{Destructor - destroy an librdf_node object.} \usage{ librdf_free_node ( r ) } \arguments{ \item{r}{librdf_node object ("_p_librdf_node_s")} } \value{ void } \description{ Destructor - destroy an librdf_node object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_hash_from_array_of_strings.Rd0000644000176200001440000000157613544473277022552 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_hash_from_array_of_strings} \alias{librdf_new_hash_from_array_of_strings} \title{Constructor - create a new librdf_hash object from an array of strings.} \usage{ librdf_new_hash_from_array_of_strings ( world, name, string ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{hash name ("character")} \item{string}{address of the start of the array of char* pointers ("character")} } \value{ _p_librdf_hash_s } \description{ Constructor - create a new librdf_hash object from an array of strings. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_query_execute.Rd0000644000176200001440000000132013544473277020332 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_query_execute} \alias{librdf_model_query_execute} \title{Execute a query against the model.} \usage{ librdf_model_query_execute ( model, query ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{query}{librdf_query object ("_p_librdf_query")} } \value{ _p_librdf_query_results } \description{ Execute a query against the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_query_from_query.Rd0000644000176200001440000000136113544473277020556 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_query_from_query} \alias{librdf_new_query_from_query} \title{Copy constructor - create a new librdf_query object from an existing one} \usage{ librdf_new_query_from_query ( old_query ) } \arguments{ \item{old_query}{the existing query librdf_query to use ("_p_librdf_query")} } \value{ _p_librdf_query } \description{ Copy constructor - create a new librdf_query object from an existing one } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_statement.Rd0000644000176200001440000000121313544473277017271 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_statement} \alias{librdf_free_statement} \title{Destructor - destroy a librdf_statement.} \usage{ librdf_free_statement ( statement ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} } \value{ void } \description{ Destructor - destroy a librdf_statement. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Parser-class.Rd0000644000176200001440000000204113544473277015301 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Parser.R \docType{class} \name{Parser-class} \alias{Parser-class} \alias{Parser} \title{An RDF Parser object} \description{ The Parser class provides methods to parse RDF content into a Redland RDF model. } \section{Slots}{ \describe{ \item{\code{librdf_parser}}{A redland parser object} }} \section{Methods}{ \itemize{ \item{\code{\link{Parser-initialize}}}{: Initialize a Parser object.} \item{\code{\link{parseFileIntoModel}}}{: Parse the contents of a file into a model.} \item{\code{\link{freeParser}}}{: Free memory used by a librdf parser.} } } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") # Create the default "rdfxml" parser parser <- new("Parser", world) filePath <- system.file("extdata/example.rdf", package="redland") parseFileIntoModel(parser, world, filePath, model) } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/rasqal_version_minor_get.Rd0000644000176200001440000000101013544473277020030 0ustar liggesusers\name{rasqal_version_minor_get} \alias{rasqal_version_minor_get} \title{Get the Rasqal minor version number.} \usage{ rasqal_version_minor_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get the Rasqal minor version number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/length-SWIGArray-method.Rd0000644000176200001440000000036413544473277017255 0ustar liggesusers\docType{methods} \name{length,SWIGArray-method} \alias{length,SWIGArray-method} \title{Return length of a SWIGArray} \usage{ \S4method{length}{SWIGArray}(x) } \arguments{ \item{x}{the SWIGArray} } \description{ Return length of a SWIGArray } redland/man/librdf_version_string.Rd0000644000176200001440000000111313544473277017336 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_version_string} \alias{librdf_version_string} \title{Library full version as a string.} \usage{ librdf_version_string ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ character } \description{ Library full version as a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_get_binding_value_by_name.Rd0000644000176200001440000000152213544473277024434 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_get_binding_value_by_name} \alias{librdf_query_results_get_binding_value_by_name} \title{Get one binding value for a given name in the current result.} \usage{ librdf_query_results_get_binding_value_by_name ( query_results, name ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{name}{variable name ("character")} } \value{ _p_librdf_node_s } \description{ Get one binding value for a given name in the current result. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_short_copyright_string.Rd0000644000176200001440000000114513544473277021105 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_short_copyright_string} \alias{librdf_short_copyright_string} \title{Short copyright string (one line).} \usage{ librdf_short_copyright_string ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ character } \description{ Short copyright string (one line). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_is_graph.Rd0000644000176200001440000000134013544473277021067 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_is_graph} \alias{librdf_query_results_is_graph} \title{Test if librdf_query_results is RDF graph format.} \usage{ librdf_query_results_is_graph ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Test if librdf_query_results is RDF graph format. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_locator_byte.Rd0000644000176200001440000000110413544473277017016 0ustar liggesusers\name{raptor_locator_byte} \alias{raptor_locator_byte} \title{Get the locator byte offset from locator.} \usage{ raptor_locator_byte ( locator, .copy ) } \arguments{ \item{locator}{raptor locator ("_p_raptor_locator")} \item{.copy}{logical} } \value{ character } \description{ Get the locator byte offset from locator } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Storage-initialize.Rd0000644000176200001440000000133613546477430016510 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Storage.R \docType{methods} \name{initialize,Storage-method} \alias{initialize,Storage-method} \alias{Storage-initialize} \title{Initialize a Storage object} \usage{ \S4method{initialize}{Storage}(.Object, world, type = "hashes", name = "", options = "hash-type='memory'") } \arguments{ \item{.Object}{the Storage object} \item{world}{the World object} \item{type}{the Redland storage type} \item{name}{storage instance name} \item{options}{storage options} } \value{ the Storage object } \description{ Initialize a Storage object } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") } redland/man/librdf_uri_equals.Rd0000644000176200001440000000134313544473277016441 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_uri_equals} \alias{librdf_uri_equals} \title{Compare two librdf_uri objects for equality.} \usage{ librdf_uri_equals ( first_uri, second_uri, .copy ) } \arguments{ \item{first_uri}{librdf_uri object 1 ("_p_librdf_uri_s")} \item{second_uri}{librdf_uri object 2 ("_p_librdf_uri_s")} \item{.copy}{NA} } \value{ integer } \description{ Compare two librdf_uri objects for equality. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_is_syntax.Rd0000644000176200001440000000132313544473277021315 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_is_syntax} \alias{librdf_query_results_is_syntax} \title{Test if librdf_query_results is a syntax.} \usage{ librdf_query_results_is_syntax ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Test if librdf_query_results is a syntax. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_parse_into_model.Rd0000644000176200001440000000161113544473277021165 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_parse_into_model} \alias{librdf_parser_parse_into_model} \title{Parse a URI of content into an librdf_model.} \usage{ librdf_parser_parse_into_model ( parser, uri, inUriOrNull, model, .copy ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} \item{uri}{the URI to read the content ("_p_librdf_uri_s")} \item{inUriOrNull}{the base URI to use or NULL ("_p_librdf_uri_s")} \item{model}{the model to use ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Parse a URI of content into an librdf_model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_query.Rd0000644000176200001440000000116313544473277016436 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_query} \alias{librdf_free_query} \title{Destructor - destroy a librdf_query object.} \usage{ librdf_free_query ( query ) } \arguments{ \item{query}{librdf_query object ("_p_librdf_query")} } \value{ void } \description{ Destructor - destroy a librdf_query object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_copyright_string.Rd0000644000176200001440000000112313544473277017662 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_copyright_string} \alias{librdf_copyright_string} \title{Copyright string (multiple lines).} \usage{ librdf_copyright_string ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ character } \description{ Copyright string (multiple lines). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_blank_identifier.Rd0000644000176200001440000000156113544473277022464 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_blank_identifier} \alias{librdf_new_node_from_blank_identifier} \title{Constructor - create a new blank node librdf_node object from a blank node identifier.} \usage{ librdf_new_node_from_blank_identifier ( world, inStrOrNull ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{inStrOrNull}{UTF-8 encoded blank node identifier or NULL ("character")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new blank node librdf_node object from a blank node identifier. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_get_count.Rd0000644000176200001440000000130413544473277021262 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_get_count} \alias{librdf_query_results_get_count} \title{Get number of bindings so far.} \usage{ librdf_query_results_get_count ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Get number of bindings so far. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_next.Rd0000644000176200001440000000125113544473277020252 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_next} \alias{librdf_query_results_next} \title{Move to the next result.} \usage{ librdf_query_results_next ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Move to the next result. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_iterator_get_context.Rd0000644000176200001440000000130513544473277020522 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_iterator_get_context} \alias{librdf_iterator_get_context} \title{Get the context of the current object on the iterator.} \usage{ librdf_iterator_get_context ( iterator ) } \arguments{ \item{iterator}{the librdf_iterator object ("_p_librdf_iterator_s")} } \value{ _p_librdf_node_s } \description{ Get the context of the current object on the iterator. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_contexts.Rd0000644000176200001440000000123113544473277020152 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_contexts} \alias{librdf_model_get_contexts} \title{Return the list of contexts in the graph.} \usage{ librdf_model_get_contexts ( model ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} } \value{ _p_librdf_iterator_s } \description{ Return the list of contexts in the graph. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_log_message_level.Rd0000644000176200001440000000122313544473277017741 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_log_message_level} \alias{librdf_log_message_level} \title{Retrieve severity of log message.} \usage{ librdf_log_message_level ( message, .copy ) } \arguments{ \item{message}{log message ("_p_librdf_log_message")} \item{.copy}{NA} } \value{ integer } \description{ Retrieve severity of log message. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_uri_to_string.Rd0000644000176200001440000000113313544473277017154 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_uri_to_string} \alias{librdf_uri_to_string} \title{Format the URI as a string.} \usage{ librdf_uri_to_string ( uri ) } \arguments{ \item{uri}{librdf_uri object ("_p_librdf_uri_s")} } \value{ character } \description{ Format the URI as a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_hash_to_string.Rd0000644000176200001440000000142413544473277017303 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_hash_to_string} \alias{librdf_hash_to_string} \title{Format the hash as a string, suitable for parsing by librdf_hash_from_string.} \usage{ librdf_hash_to_string ( hash, filter ) } \arguments{ \item{hash}{librdf_hash object ("_p_librdf_hash_s")} \item{filter}{NULL terminated list of keys to ignore ("_p_p_char")} } \value{ character } \description{ Format the hash as a string, suitable for parsing by librdf_hash_from_string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_stream_end.Rd0000644000176200001440000000117213544473277016411 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_stream_end} \alias{librdf_stream_end} \title{Test if the stream has ended.} \usage{ librdf_stream_end ( stream, .copy ) } \arguments{ \item{stream}{librdf_stream object ("_p_librdf_stream_s")} \item{.copy}{NA} } \value{ integer } \description{ Test if the stream has ended. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_uri.Rd0000644000176200001440000000141213544473277017765 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_uri} \alias{librdf_new_node_from_uri} \title{Constructor - create a new resource librdf_node object with a given URI.} \usage{ librdf_new_node_from_uri ( world, uri ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{uri}{librdf_uri object ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new resource librdf_node object with a given URI. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_serializer_serialize_model_to_string.Rd0000644000176200001440000000201413544473277023754 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_serialize_model_to_string} \alias{librdf_serializer_serialize_model_to_string} \title{Write a serialized librdf_model to a string. The returned string must be freed by the caller using librdf_free_memory().} \usage{ librdf_serializer_serialize_model_to_string ( serializer, inUriOrNull, model ) } \arguments{ \item{serializer}{the serializer ("_p_librdf_serializer_s")} \item{inUriOrNull}{the base URI to use (or NULL) ("_p_librdf_uri_s")} \item{model}{the librdf_model model to use ("_p_librdf_model_s")} } \value{ character } \description{ Write a serialized librdf_model to a string. The returned string must be freed by the caller using librdf_free_memory(). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_version_release_get.Rd0000644000176200001440000000104713544473277020315 0ustar liggesusers\name{librdf_version_release_get} \alias{librdf_version_release_get} \title{Return the Redland librdf release version number} \usage{ librdf_version_release_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Return the Redland librdf release version number } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Node-class.Rd0000644000176200001440000000275313544473277014744 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Node.R \docType{class} \encoding{UTF-8} \name{Node-class} \alias{Node-class} \alias{Node} \title{A Redland Node, used to store one node in an RDF triple statement.} \description{ A Node represents a RDF Resource, Property, Literal or an RDF blank Node. } \section{Slots}{ \describe{ \item{\code{librdf_node}}{A redland node object} }} \section{Methods}{ \itemize{ \item{\code{\link{Node-initialize}}}{: Initialize a Node object.} \item{\code{\link{getNodeType}}}{: Determine the node type and return as a string.} \item{\code{\link{getNodeValue}}}{: Determine the node type and return as a string.} \item{\code{\link{getBlankNodeId}}}{: Get the value of the node as a string.} } } \examples{ world <- new("World") # a blank node is created with a unique identifier generated by librdf node <- new("Node", world) # a blank node is created with a unique identifier generated by librdf node <- new("Node", world, blank=NULL) # a blank node is created with the user specified identifier, i.e. "_:id1" node <- new("Node", world, blank="someid") # a node type of 'literal' is created node <- new("Node", world, literal="A Node Value") # a Node type of 'resource' is created node <- new("Node", world, uri="http://www.example.com") # Create a literal node, specifying a language encoding node <- new("Node", world, literal="Gérard de La Martinière", language="fr") } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/librdf_query_results_is_boolean.Rd0000644000176200001440000000134213544473277021407 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_is_boolean} \alias{librdf_query_results_is_boolean} \title{Test if librdf_query_results is boolean format.} \usage{ librdf_query_results_is_boolean ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Test if librdf_query_results is boolean format. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_uri.Rd0000644000176200001440000000133213544473277015736 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_uri} \alias{librdf_new_uri} \title{Constructor - create a new librdf_uri object from a URI string.} \usage{ librdf_new_uri ( world, string ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{string}{URI in string form ("character")} } \value{ _p_librdf_uri_s } \description{ Constructor - create a new librdf_uri object from a URI string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_statement_set_subject.Rd0000644000176200001440000000131313544473277020663 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_set_subject} \alias{librdf_statement_set_subject} \title{Set the statement subject.} \usage{ librdf_statement_set_subject ( statement, subject ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} \item{subject}{librdf_node of subject ("_p_librdf_node_s")} } \value{ void } \description{ Set the statement subject. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_add_statement.Rd0000644000176200001440000000132413544473277020263 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_add_statement} \alias{librdf_model_add_statement} \title{Add a statement to the model.} \usage{ librdf_model_add_statement ( model, statement, .copy ) } \arguments{ \item{model}{model object ("_p_librdf_model_s")} \item{statement}{statement object ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Add a statement to the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_get_binding_name.Rd0000644000176200001440000000145313544473277022551 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_get_binding_name} \alias{librdf_query_results_get_binding_name} \title{Get binding name for the current result.} \usage{ librdf_query_results_get_binding_name ( query_results, offset ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{offset}{offset of binding name into array of known names ("integer")} } \value{ character } \description{ Get binding name for the current result. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_string.Rd0000644000176200001440000000076613544473277017420 0ustar liggesusers\name{raptor_version_string} \alias{raptor_version_string} \title{Raptor library version string.} \usage{ raptor_version_string ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ character } \description{ Raptor library version string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_minor_get.Rd0000644000176200001440000000100313544473277020056 0ustar liggesusers\name{raptor_version_minor_get} \alias{raptor_version_minor_get} \title{Get Raptor library minor version.} \usage{ raptor_version_minor_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get Raptor library minor version. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_to_string.Rd0000644000176200001440000000175213544473277017464 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_to_string} \alias{librdf_model_to_string} \title{Write serialized model to a string.} \usage{ librdf_model_to_string ( model, uri, name, mime_type, inUriOrNull ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{uri}{base URI to use in serializing (or NULL if not used) ("_p_librdf_uri_s")} \item{name}{the name of the serializer (or NULL for default) ("character")} \item{mime_type}{the MIME type of the syntax (NULL if not used) ("character")} \item{inUriOrNull}{URI identifying the syntax (NULL if not used) ("_p_librdf_uri_s")} } \value{ character } \description{ Write serialized model to a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_add_string_literal_statement.Rd0000644000176200001440000000210713544473277023365 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_add_string_literal_statement} \alias{librdf_model_add_string_literal_statement} \title{Create and add a new statement about a literal to the model.} \usage{ librdf_model_add_string_literal_statement ( model, subject, predicate, literal, inStrOrNull, is_wf_xml, .copy ) } \arguments{ \item{model}{model object ("_p_librdf_model_s")} \item{subject}{librdf_node of subject ("_p_librdf_node_s")} \item{predicate}{librdf_node of predicate ("_p_librdf_node_s")} \item{literal}{string literal conten ("character")} \item{inStrOrNull}{language of literal ("character")} \item{is_wf_xml}{literal is XML ("integer")} \item{.copy}{NA} } \value{ integer } \description{ Create and add a new statement about a literal to the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_transaction_rollback.Rd0000644000176200001440000000122713544473277021647 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_transaction_rollback} \alias{librdf_model_transaction_rollback} \title{Rollback a transaction.} \usage{ librdf_model_transaction_rollback ( model, .copy ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Rollback a transaction. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/World-initialize.Rd0000644000176200001440000000061413546477430016171 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/World.R \docType{methods} \name{initialize,World-method} \alias{initialize,World-method} \alias{World-initialize} \title{Initialize the World object.} \usage{ \S4method{initialize}{World}(.Object) } \arguments{ \item{.Object}{the World object} } \value{ the World object } \description{ Initialize the World object. } redland/man/librdf_new_parser.Rd0000644000176200001440000000163713544473277016443 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_parser} \alias{librdf_new_parser} \title{Constructor - create a new librdf_parser object.} \usage{ librdf_new_parser ( world, name, mime_type, type_uri ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{the parser factory name (or NULL or empty string if don't care) ("character")} \item{mime_type}{the MIME type of the syntax (NULL if not used) ("character")} \item{type_uri}{URI of syntax (NULL if not used) ("_p_librdf_uri_s")} } \value{ _p_librdf_parser_s } \description{ Constructor - create a new librdf_parser object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_is_literal.Rd0000644000176200001440000000116413544473277017425 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_is_literal} \alias{librdf_node_is_literal} \title{Check node is a literal.} \usage{ librdf_node_is_literal ( node, .copy ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Check node is a literal. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_stream.Rd0000644000176200001440000000117613544473277016570 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_stream} \alias{librdf_free_stream} \title{Destructor - destroy an libdf_stream object.} \usage{ librdf_free_stream ( stream ) } \arguments{ \item{stream}{librdf_stream object ("_p_librdf_stream_s")} } \value{ void } \description{ Destructor - destroy an libdf_stream object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_uri_from_uri.Rd0000644000176200001440000000133613544473277017644 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_uri_from_uri} \alias{librdf_new_uri_from_uri} \title{Copy constructor - create a new librdf_uri object from an existing librdf_uri object.} \usage{ librdf_new_uri_from_uri ( uri ) } \arguments{ \item{uri}{librdf_uri object ("_p_librdf_uri_s")} } \value{ _p_librdf_uri_s } \description{ Copy constructor - create a new librdf_uri object from an existing librdf_uri object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_typed_literal.Rd0000644000176200001440000000173413544473277022036 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_typed_literal} \alias{librdf_new_node_from_typed_literal} \title{Constructor - create a new typed literal librdf_node object.} \usage{ librdf_new_node_from_typed_literal ( world, string, inStrOrNull, inUriOrNull ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{string}{literal UTF-8 encoded string value ("character")} \item{inStrOrNull}{literal XML language (or NULL, empty string) ("character")} \item{inUriOrNull}{URI of typed literal datatype or NULL ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new typed literal librdf_node object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_major_get.Rd0000644000176200001440000000100213544473277020015 0ustar liggesusers\name{rasqal_version_major_get} \alias{rasqal_version_major_get} \title{Get Rasqal major version number.} \usage{ rasqal_version_major_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get Rasqal major version number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_context_as_stream.Rd0000644000176200001440000000134613544473277021175 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_context_as_stream} \alias{librdf_model_context_as_stream} \title{List all statements in a model context.} \usage{ librdf_model_context_as_stream ( model, context ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{context}{librdf_node context ("_p_librdf_node_s")} } \value{ _p_librdf_stream_s } \description{ List all statements in a model context. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_statement_get_subject.Rd0000644000176200001440000000122013544473277020644 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_get_subject} \alias{librdf_statement_get_subject} \title{Get the statement subject.} \usage{ librdf_statement_get_subject ( statement ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} } \value{ _p_librdf_node_s } \description{ Get the statement subject. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_get_namespaces_seen_uri.Rd0000644000176200001440000000140713544473277022514 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_get_namespaces_seen_uri} \alias{librdf_parser_get_namespaces_seen_uri} \title{Get the uri of namespaces seen during parsing} \usage{ librdf_parser_get_namespaces_seen_uri ( parser, offset ) } \arguments{ \item{parser}{librdf_parser object ("_p_librdf_parser_s")} \item{offset}{index into list of namespaces ("integer")} } \value{ _p_librdf_uri_s } \description{ Get the uri of namespaces seen during parsing } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/subset-ExternalReference-method.Rd0000644000176200001440000000067613544473277021140 0ustar liggesusers\docType{methods} \name{[<-,ExternalReference-method} \alias{[<-,ExternalReference-method} \title{Assign values in a list of ExternalReferences} \usage{ \S4method{[}{ExternalReference}(x, i, j, ...) <- value } \arguments{ \item{x}{a list of ExternalReferences} \item{i}{row subscript} \item{j}{column subscript} \item{...}{additional arguments} \item{value}{a value to assign} } \description{ Assign values in a list of ExternalReferences } redland/man/Query-initialize.Rd0000644000176200001440000000143113546477430016205 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{initialize,Query-method} \alias{initialize,Query-method} \alias{Query-initialize} \title{Initialize the Query object.} \usage{ \S4method{initialize}{Query}(.Object, world, querystring, base_uri = NULL, query_language = "sparql", query_uri = NULL) } \arguments{ \item{.Object}{the Query object} \item{world}{a World object} \item{querystring}{a query string for the language specified in 'query_language'} \item{base_uri}{a URI to prepend to relative URI in the document} \item{query_language}{the query language to execute the querystring with} \item{query_uri}{a URI to prepend to terms in the query} } \value{ the Query object } \description{ Initialize the Query object. } redland/man/librdf_parser_get_namespaces_seen_prefix.Rd0000644000176200001440000000142013544473277023205 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_get_namespaces_seen_prefix} \alias{librdf_parser_get_namespaces_seen_prefix} \title{Get the prefix of namespaces seen during parsing} \usage{ librdf_parser_get_namespaces_seen_prefix ( parser, offset ) } \arguments{ \item{parser}{librdf_parser object ("_p_librdf_parser_s")} \item{offset}{index into list of namespaces ("integer")} } \value{ character } \description{ Get the prefix of namespaces seen during parsing } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_string_get.Rd0000644000176200001440000000101013544473277020212 0ustar liggesusers\name{rasqal_version_string_get} \alias{rasqal_version_string_get} \title{Get the Rasqal version as a string} \usage{ rasqal_version_string_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get the Rasqal version as a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_version_decimal.Rd0000644000176200001440000000113613544473277017433 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_version_decimal} \alias{librdf_version_decimal} \title{Library full version as a decimal integer.} \usage{ librdf_version_decimal ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ integer } \description{ Library full version as a decimal integer. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_statement_match.Rd0000644000176200001440000000143213544473277017447 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_match} \alias{librdf_statement_match} \title{Match a statement against a 'partial' statement.} \usage{ librdf_statement_match ( statement, partial_statement, .copy ) } \arguments{ \item{statement}{statement ("_p_librdf_statement_s")} \item{partial_statement}{statement with possible empty parts ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Match a statement against a 'partial' statement. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_to_string2.Rd0000644000176200001440000000174213544473277021373 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_to_string2} \alias{librdf_query_results_to_string2} \title{Turn a query results into a string.} \usage{ librdf_query_results_to_string2 ( query_results, name, mime_type, format_uri, base_uri ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} \item{name}{format name ("character")} \item{mime_type}{format mime type (or NULL) ("character")} \item{format_uri}{URI of syntax to format to (or NULL) ("_p_librdf_uri_s")} \item{base_uri}{Base URI of output formatted syntax (or NULL) ("_p_librdf_uri_s")} } \value{ character } \description{ Turn a query results into a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_iterator_next.Rd0000644000176200001440000000123113544473277017153 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_iterator_next} \alias{librdf_iterator_next} \title{Move to the next iterator element.} \usage{ librdf_iterator_next ( iterator, .copy ) } \arguments{ \item{iterator}{the librdf_iterator object ("_p_librdf_iterator_s")} \item{.copy}{NA} } \value{ integer } \description{ Move to the next iterator element. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_hash_from_string.Rd0000644000176200001440000000145713544473277020503 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_hash_from_string} \alias{librdf_new_hash_from_string} \title{Constructor - create a new librdf_hash object from a string.} \usage{ librdf_new_hash_from_string ( world, name, string ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{hash name ("character")} \item{string}{hash encoded as a string ("character")} } \value{ _p_librdf_hash_s } \description{ Constructor - create a new librdf_hash object from a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_is_resource.Rd0000644000176200001440000000117113544473277017616 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_is_resource} \alias{librdf_node_is_resource} \title{Check node is a resource.} \usage{ librdf_node_is_resource ( node, .copy ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Check node is a resource. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_target.Rd0000644000176200001440000000156613544473277017604 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_target} \alias{librdf_model_get_target} \title{Return one target (object) of an arc in an RDF graph given source (subject) and arc (predicate).} \usage{ librdf_model_get_target ( model, source, arc ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{source}{librdf_node source ("_p_librdf_node_s")} \item{arc}{librdf_node arc ("_p_librdf_node_s")} } \value{ _p_librdf_node_s } \description{ Return one target (object) of an arc in an RDF graph given source (subject) and arc (predicate). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_storage_from_storage.Rd0000644000176200001440000000142113544473277021351 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_storage_from_storage} \alias{librdf_new_storage_from_storage} \title{Copy constructor - create a new librdf_storage object from an existing one} \usage{ librdf_new_storage_from_storage ( old_storage ) } \arguments{ \item{old_storage}{the existing storage librdf_storage to use ("_p_librdf_storage_s")} } \value{ _p_librdf_storage_s } \description{ Copy constructor - create a new librdf_storage object from an existing one } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_get_binding_value.Rd0000644000176200001440000000147713544473277022753 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_get_binding_value} \alias{librdf_query_results_get_binding_value} \title{Get one binding value for the current result.} \usage{ librdf_query_results_get_binding_value ( query_results, offset ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{offset}{offset of binding name into array of known names ("integer")} } \value{ _p_librdf_node_s } \description{ Get one binding value for the current result. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_digest.Rd0000644000176200001440000000133613544473277016422 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_digest} \alias{librdf_new_digest} \title{Constructor - create a new librdf_digest object.} \usage{ librdf_new_digest ( world, name ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{the digest name to use to create this digest ("character")} } \value{ _p_librdf_digest_s } \description{ Constructor - create a new librdf_digest object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_guess_name2.Rd0000644000176200001440000000156713544473277020064 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_guess_name2} \alias{librdf_parser_guess_name2} \title{Get a parser name for content with type or identifier} \usage{ librdf_parser_guess_name2 ( world, mime_type, buffer, identifier ) } \arguments{ \item{world}{librdf_world object ("_p_librdf_world_s")} \item{mime_type}{MIME type of syntax or NULL ("character")} \item{buffer}{content buffer or NULL ("character")} \item{identifier}{content identifier or NULL ("character")} } \value{ character } \description{ Get a parser name for content with type or identifier } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/serializeToCharacter.Rd0000644000176200001440000000140513546477430017051 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Serializer.R \docType{methods} \name{serializeToCharacter} \alias{serializeToCharacter} \alias{serializeToCharacter,Serializer,World,Model-method} \title{Serialize a model to a character vector.} \usage{ serializeToCharacter(.Object, world, model, ...) \S4method{serializeToCharacter}{Serializer,World,Model}(.Object, world, model, baseUri = as.character(NA)) } \arguments{ \item{.Object}{a Serializer object} \item{world}{a World object} \item{model}{a Model object} \item{...}{Additional parameters} \item{baseUri}{a URI to prepend to relative URIs in the document} } \value{ a character vector containing the serialized model } \description{ Serialize a model to a character vector. } redland/man/librdf_model_find_statements_in_context.Rd0000644000176200001440000000164313544473277023074 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_find_statements_in_context} \alias{librdf_model_find_statements_in_context} \title{Search the model for matching statements in a given context.} \usage{ librdf_model_find_statements_in_context ( model, statement, inNodeOrNull ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{statement}{librdf_statement partial statement to find ("_p_librdf_statement_s")} \item{inNodeOrNull}{context librdf_node (or NULL) ("_p_librdf_node_s")} } \value{ _p_librdf_stream_s } \description{ Search the model for matching statements in a given context. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_version_major.Rd0000644000176200001440000000115013544473277017141 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_version_major} \alias{librdf_version_major} \title{Library major version number as a decimal integer.} \usage{ librdf_version_major ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ integer } \description{ Library major version number as a decimal integer. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_get_feature.Rd0000644000176200001440000000132713544473277020140 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_get_feature} \alias{librdf_parser_get_feature} \title{Get the value of a parser feature.} \usage{ librdf_parser_get_feature ( parser, feature ) } \arguments{ \item{parser}{librdf_parser object ("_p_librdf_parser_s")} \item{feature}{librdf_Uuri feature property ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Get the value of a parser feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_log_message_facility.Rd0000644000176200001440000000126413544473277020443 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_log_message_facility} \alias{librdf_log_message_facility} \title{Retrieve facility that generated the message.} \usage{ librdf_log_message_facility ( message, .copy ) } \arguments{ \item{message}{log message ("_p_librdf_log_message")} \item{.copy}{NA} } \value{ integer } \description{ Retrieve facility that generated the message. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/sub-ExternalReference-method.Rd0000644000176200001440000000064113544473277020414 0ustar liggesusers\docType{methods} \name{[,ExternalReference-method} \alias{[,ExternalReference-method} \title{Subset a list of ExternalReferences} \usage{ \S4method{[}{ExternalReference}(x, i, j, ..., drop = TRUE) } \arguments{ \item{x}{a list of ExternalReferences} \item{i}{row subscript} \item{j}{column subscript} \item{...}{additional arguments} \item{drop}{a logical} } \description{ Subset a list of ExternalReferences } redland/man/rasqal_version_decimal.Rd0000644000176200001440000000100113544473277017443 0ustar liggesusers\name{rasqal_version_decimal} \alias{rasqal_version_decimal} \title{Rasqal version as a decimal number.} \usage{ rasqal_version_decimal ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Rasqal version as a decimal number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Serializer-initialize.Rd0000644000176200001440000000133213546477430017211 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Serializer.R \docType{methods} \name{initialize,Serializer-method} \alias{initialize,Serializer-method} \alias{Serializer-initialize} \title{Construct a Serializer object.} \usage{ \S4method{initialize}{Serializer}(.Object, world, name = "rdfxml", mimeType = "application/rdf+xml", typeUri = as.character(NA)) } \arguments{ \item{.Object}{the Serializer object} \item{world}{a World object} \item{name}{name of a previously created serializer factory to use} \item{mimeType}{a mime type of the syntax of the model} \item{typeUri}{a URI for the syntax of the model} } \value{ the Serializer object } \description{ Construct a Serializer object. } redland/man/librdf_copyright_string_get.Rd0000644000176200001440000000101513544473277020521 0ustar liggesusers\name{librdf_copyright_string_get} \alias{librdf_copyright_string_get} \title{Return Redland RDF copyright string} \usage{ librdf_copyright_string_get (.copy) } \arguments{ \item{.copy}{logical} } \value{ character } \description{ Return the Redland RDF copyright } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_world_set_logger.Rd0000644000176200001440000000142513544473277017632 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_world_set_logger} \alias{librdf_world_set_logger} \title{Set the world log handling function.} \usage{ librdf_world_set_logger ( world, user_data, log_handler ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{user_data}{user data to pass to function ("_p_void")} \item{log_handler}{pointer to the function ("_p_librdf_log_func")} } \value{ void } \description{ Set the world log handling function. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_world_get_feature.Rd0000644000176200001440000000131513544473277017770 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_world_get_feature} \alias{librdf_world_get_feature} \title{Get the value of a world feature.} \usage{ librdf_world_get_feature ( world, feature ) } \arguments{ \item{world}{librdf_world object ("_p_librdf_world_s")} \item{feature}{librdf_uri feature property ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Get the value of a world feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/serializeToFile.Rd0000644000176200001440000000156213546477430016040 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Serializer.R \docType{methods} \name{serializeToFile} \alias{serializeToFile} \alias{serializeToFile,Serializer,World,Model,character-method} \title{Serialize a model to a file.} \usage{ serializeToFile(.Object, world, model, filePath, ...) \S4method{serializeToFile}{Serializer,World,Model,character}(.Object, world, model, filePath, baseUri = as.character(NA)) } \arguments{ \item{.Object}{a Serializer object} \item{world}{a World object} \item{model}{a Model object} \item{filePath}{a file path that the serialized model will be written to} \item{...}{Additional parameters} \item{baseUri}{a base URI to use for the serialization} } \value{ an integer containing the return status where non zero indicates an error occurred during serialization } \description{ Serialize a model to a file. } redland/man/librdf_model_size.Rd0000644000176200001440000000122013544473277016414 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_size} \alias{librdf_model_size} \title{Get the number of statements in the model.} \usage{ librdf_model_size ( model, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Get the number of statements in the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_load.Rd0000644000176200001440000000171413544473277016371 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_load} \alias{librdf_model_load} \title{Load content from a URI into the model.} \usage{ librdf_model_load ( model, uri, name, mime_type, type_uri, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{uri}{the URI to read the content ("_p_librdf_uri_s")} \item{name}{the name of the parser (or NULL) ("character")} \item{mime_type}{the MIME type of the syntax (NULL if not used) ("character")} \item{type_uri}{URI identifying the syntax (NULL if not used) ("_p_librdf_uri_s")} \item{.copy}{NA} } \value{ integer } \description{ Load content from a URI into the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_arcs_out.Rd0000644000176200001440000000137113544473277020127 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_arcs_out} \alias{librdf_model_get_arcs_out} \title{Return the properties pointing from the given resource.} \usage{ librdf_model_get_arcs_out ( model, node ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{node}{librdf_node resource node ("_p_librdf_node_s")} } \value{ _p_librdf_iterator_s } \description{ Return the properties pointing from the given resource. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_literal_value_datatype_uri.Rd0000644000176200001440000000133413544473277023536 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_literal_value_datatype_uri} \alias{librdf_node_get_literal_value_datatype_uri} \title{Get the typed literal datatype URI of the literal node.} \usage{ librdf_node_get_literal_value_datatype_uri ( node ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} } \value{ _p_librdf_uri_s } \description{ Get the typed literal datatype URI of the literal node. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_set_feature.Rd0000644000176200001440000000145513544473277017762 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_set_feature} \alias{librdf_model_set_feature} \title{Set the value of a graph feature.} \usage{ librdf_model_set_feature ( model, feature, value, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{feature}{librdf_uri feature property ("_p_librdf_uri_s")} \item{value}{librdf_node feature property value ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Set the value of a graph feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_context_remove_statements.Rd0000644000176200001440000000145313544473277022762 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_context_remove_statements} \alias{librdf_model_context_remove_statements} \title{Remove statements from a model with the given context.} \usage{ librdf_model_context_remove_statements ( model, context, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{context}{librdf_node context ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Remove statements from a model with the given context. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_world.Rd0000644000176200001440000000106213544473277016266 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_world} \alias{librdf_new_world} \title{Create a new Redland execution environment.} \usage{ librdf_new_world ( ) } \value{ _p_librdf_world_s } \description{ Create a new Redland execution environment. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_remove_statement.Rd0000644000176200001440000000136413544473277021034 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_remove_statement} \alias{librdf_model_remove_statement} \title{Remove a known statement from the model.} \usage{ librdf_model_remove_statement ( model, statement, .copy ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{statement}{the statement ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Remove a known statement from the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_normalised_uri_string.Rd0000644000176200001440000000203613544473277023573 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_normalised_uri_string} \alias{librdf_new_node_from_normalised_uri_string} \title{Constructor - create a new librdf_node object from a UTF-8 encoded URI string normalised to a new base URI.} \usage{ librdf_new_node_from_normalised_uri_string ( world, uri_string, source_uri, base_uri ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{uri_string}{UTF-8 encoded string representing a URI ("character")} \item{source_uri}{source URI ("_p_librdf_uri_s")} \item{base_uri}{base URI ("_p_librdf_uri_s")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new librdf_node object from a UTF-8 encoded URI string normalised to a new base URI. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_uri.Rd0000644000176200001440000000114313544473277016066 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_uri} \alias{librdf_free_uri} \title{Destructor - destroy a librdf_uri object.} \usage{ librdf_free_uri ( uri ) } \arguments{ \item{uri}{librdf_uri object ("_p_librdf_uri_s")} } \value{ void } \description{ Destructor - destroy a librdf_uri object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/is.null.externalptr.Rd0000644000176200001440000000073513544473277016705 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/util.R \name{is.null.externalptr} \alias{is.null.externalptr} \title{Determine whether an externalptr object is NULL.} \usage{ is.null.externalptr(pointer) } \arguments{ \item{pointer}{externalptr to be checked for NULL value} } \value{ logical TRUE if the pointer is NULL, otherwise FALSE } \description{ The pointer is treated as an externalptr and checked via a call in C to see if it is NULL. } redland/man/librdf_free_world.Rd0000644000176200001440000000122013544473277016412 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_world} \alias{librdf_free_world} \title{Terminate the library and frees all allocated resources.} \usage{ librdf_free_world ( world ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} } \value{ void } \description{ Terminate the library and frees all allocated resources. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_digest_final.Rd0000644000176200001440000000113113544473277016713 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_digest_final} \alias{librdf_digest_final} \title{Finish the digesting of data.} \usage{ librdf_digest_final ( digest ) } \arguments{ \item{digest}{the digest ("_p_librdf_digest_s")} } \value{ void } \description{ Finish the digesting of data. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/getNodeType.Rd0000644000176200001440000000124413546477430015172 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Node.R \docType{methods} \name{getNodeType} \alias{getNodeType} \alias{getNodeType,Node-method} \title{Determine the node type and return as a string} \usage{ getNodeType(.Object) \S4method{getNodeType}{Node}(.Object) } \arguments{ \item{.Object}{a Node object} } \value{ a character vector containing the Node type } \description{ A Node has a type that is assigned at initialization and can have one of the following values: 'resource', 'literal', 'blank' and 'unknown'. } \examples{ world <- new("World") node <- new("Node", world, uri="http://www.example.com") nodeType <- getNodeType(node) } redland/man/librdf_log_message_message.Rd0000644000176200001440000000121113544473277020253 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_log_message_message} \alias{librdf_log_message_message} \title{Retrieve text message from log entry.} \usage{ librdf_log_message_message ( message ) } \arguments{ \item{message}{log message ("_p_librdf_log_message")} } \value{ character } \description{ Retrieve text message from log entry. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_contains_context.Rd0000644000176200001440000000133313544473277021031 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_contains_context} \alias{librdf_model_contains_context} \title{Check for a context in the model.} \usage{ librdf_model_contains_context ( model, context, .copy ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{context}{the contest ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Check for a context in the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_model.Rd0000644000176200001440000000117713544473277016376 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_model} \alias{librdf_free_model} \title{Destructor - Destroy a librdf_model object.} \usage{ librdf_free_model ( model ) } \arguments{ \item{model}{librdf_model model to destroy ("_p_librdf_model_s")} } \value{ void } \description{ Destructor - Destroy a librdf_model object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_arc.Rd0000644000176200001440000000156613544473277017063 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_arc} \alias{librdf_model_get_arc} \title{Return one arc (predicate) of an arc in an RDF graph given source (subject) and target (object).} \usage{ librdf_model_get_arc ( model, source, target ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{source}{librdf_node source ("_p_librdf_node_s")} \item{target}{librdf_node target ("_p_librdf_node_s")} } \value{ _p_librdf_node_s } \description{ Return one arc (predicate) of an arc in an RDF graph given source (subject) and target (object). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_version_decimal_get.Rd0000644000176200001440000000100513544473277020265 0ustar liggesusers\name{librdf_version_decimal_get} \alias{librdf_version_decimal_get} \title{Return Redland librdf copyright} \usage{ librdf_version_decimal_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Return Redland librdf copyright } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/getQueryResultsLimit.Rd0000644000176200001440000000102013546477430017121 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{getQueryResultLimit} \alias{getQueryResultLimit} \alias{getQueryResultLimit,Query-method} \title{Get the query result limit} \usage{ getQueryResultLimit(.Object) \S4method{getQueryResultLimit}{Query}(.Object) } \arguments{ \item{.Object}{a Query object} } \value{ the query result limit. If a limit is set then the value will be >= 0. If the value is < 0, no limit is set } \description{ Get the query result limit } redland/man/librdf_serializer_serialize_stream_to_string.Rd0000644000176200001440000000154213544473277024154 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_serialize_stream_to_string} \alias{librdf_serializer_serialize_stream_to_string} \title{Write a librdf_stream to a string.} \usage{ librdf_serializer_serialize_stream_to_string ( serializer, base_uri, stream ) } \arguments{ \item{serializer}{the serializer ("_p_librdf_serializer_s")} \item{base_uri}{the base URI to use (or NULL) ("_p_librdf_uri_s")} \item{stream}{the librdf_stream stream to use ("_p_librdf_stream_s")} } \value{ character } \description{ Write a librdf_stream to a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_parse_string_into_model.Rd0000644000176200001440000000162713544473277022562 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_parse_string_into_model} \alias{librdf_parser_parse_string_into_model} \title{Parse a string of content into an librdf_model.} \usage{ librdf_parser_parse_string_into_model ( parser, string, base_uri, model, .copy ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} \item{string}{the content to parse ("character")} \item{base_uri}{the base URI to use or NULL ("_p_librdf_uri_s")} \item{model}{the model to use ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Parse a string of content into an librdf_model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_model.Rd0000644000176200001440000000146413544473277016245 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_model} \alias{librdf_new_model} \title{Constructor - create a new storage librdf_model object.} \usage{ librdf_new_model ( world, storage, options_string ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{storage}{librdf_storage to use ("_p_librdf_storage_s")} \item{options_string}{options to initialise model ("character")} } \value{ _p_librdf_model_s } \description{ Constructor - create a new storage librdf_model object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_uri_from_filename.Rd0000644000176200001440000000140113544473277020616 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_uri_from_filename} \alias{librdf_new_uri_from_filename} \title{Constructor - create a new librdf_uri object from a filename.} \usage{ librdf_new_uri_from_filename ( world, filename ) } \arguments{ \item{world}{Redland librdf_world object ("_p_librdf_world_s")} \item{filename}{filename ("character")} } \value{ _p_librdf_uri_s } \description{ Constructor - create a new librdf_uri object from a filename. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_world_set_feature.Rd0000644000176200001440000000145513544473277020011 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_world_set_feature} \alias{librdf_world_set_feature} \title{Set the value of a world feature.} \usage{ librdf_world_set_feature ( world, feature, value, .copy ) } \arguments{ \item{world}{librdf_world object ("_p_librdf_world_s")} \item{feature}{librdf_uri feature property ("_p_librdf_uri_s")} \item{value}{librdf_node feature property value ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Set the value of a world feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_digest.Rd0000644000176200001440000000116413544473277016551 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_digest} \alias{librdf_free_digest} \title{Destructor - destroy a librdf_digest object.} \usage{ librdf_free_digest ( digest ) } \arguments{ \item{digest}{the digest ("_p_librdf_digest_s")} } \value{ void } \description{ Destructor - destroy a librdf_digest object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_string_get.Rd0000644000176200001440000000101313544473277020241 0ustar liggesusers\name{raptor_version_string_get} \alias{raptor_version_string_get} \title{Get Raptor library version string.} \usage{ raptor_version_string_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ character } \description{ Get Raptor library version string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_iterator_get_object.Rd0000644000176200001440000000125013544473277020303 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_iterator_get_object} \alias{librdf_iterator_get_object} \title{Get the current object from the iterator.} \usage{ librdf_iterator_get_object ( iterator ) } \arguments{ \item{iterator}{the librdf_iterator object ("_p_librdf_iterator_s")} } \value{ _p_librdf_node_s } \description{ Get the current object from the iterator. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_statement.Rd0000644000176200001440000000123613544473277017146 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_statement} \alias{librdf_new_statement} \title{Constructor - create a new empty librdf_statement.} \usage{ librdf_new_statement ( world ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} } \value{ _p_librdf_statement_s } \description{ Constructor - create a new empty librdf_statement. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_decimal.Rd0000644000176200001440000000077713544473277017512 0ustar liggesusers\name{raptor_version_decimal} \alias{raptor_version_decimal} \title{Raptor version as a decimal number} \usage{ raptor_version_decimal ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Raptor version as a decimal number } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/freeStorage.Rd0000644000176200001440000000157413546477430015217 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Storage.R \docType{methods} \name{freeStorage} \alias{freeStorage} \alias{freeStorage,Storage-method} \title{Free memory used by a librdf storage object} \usage{ freeStorage(.Object) \S4method{freeStorage}{Storage}(.Object) } \arguments{ \item{.Object}{a Storage object to free memory for} } \description{ After this method is called, the Storage object is no longer usable and should be deleted \code{"rm(storage)"} and a new object created. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") # At this point we would perform some operations using the storage object. # See '?redland' for a complete example. # When the Storage object is no longer needed, the resources it had allocated can be freed. status <- freeStorage(storage) rm(storage) } redland/man/writeResults.Rd0000644000176200001440000000400513546477430015455 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{writeResults} \alias{writeResults} \alias{writeResults,Query-method} \title{Write query results to a file.} \usage{ writeResults(.Object, model, ...) \S4method{writeResults}{Query}(.Object, model, file, mimeType = "application/x-turtle", format_uri = NULL, base_uri = NULL) } \arguments{ \item{.Object}{a Query object} \item{model}{a Model object} \item{...}{additional parameters} \item{file}{a string specifying the output file} \item{mimeType}{a string specifying the mimeType of the output file. Currently supported values are "application/x-turtle", "text/plain", "application/json", "text/html"} \item{format_uri}{(not currently used)} \item{base_uri}{(not currently used)} } \description{ Write query results to a file. } \details{ After this method is called, the Query object is no longer usable and should be deleted \code{"rm(query)"} and a new object created. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") stmt <- new("Statement", world=world, subject="https://orcid.org/0000-0002-2192-403X", predicate="http://www.w3.org/ns/prov#Agent", object="slaughter", objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") status <- addStatement(model, stmt) queryString <- paste("PREFIX orcid: ", "PREFIX dataone: ", "PREFIX prov: ", "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) # Return all results as a string tf <- tempfile() writeResults(query, model, file=tf, mimeType="application/x-turtle") # When the query object is no longer needed, the resources it had allocated can be freed. freeQuery(query) rm(query) } redland/man/librdf_parser_parse_counted_string_into_model.Rd0000644000176200001440000000200313544473277024270 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_parse_counted_string_into_model} \alias{librdf_parser_parse_counted_string_into_model} \title{Parse a counted string of content into an librdf_model.} \usage{ librdf_parser_parse_counted_string_into_model ( parser, string, length, base_uri, model, .copy ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} \item{string}{the content to parse ("character")} \item{length}{length of content (must be >0) ("integer")} \item{base_uri}{the base URI to use or NULL ("_p_librdf_uri_s")} \item{model}{the model to use ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Parse a counted string of content into an librdf_model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_statement_get_object.Rd0000644000176200001440000000121313544473277020455 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_get_object} \alias{librdf_statement_get_object} \title{Get the statement object.} \usage{ librdf_statement_get_object ( statement ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} } \value{ _p_librdf_node_s } \description{ Get the statement object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_add_statements.Rd0000644000176200001440000000140313544473277020444 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_add_statements} \alias{librdf_model_add_statements} \title{Add a stream of statements to the model.} \usage{ librdf_model_add_statements ( model, statement_stream, .copy ) } \arguments{ \item{model}{model object ("_p_librdf_model_s")} \item{statement_stream}{stream of statements to use ("_p_librdf_stream_s")} \item{.copy}{NA} } \value{ integer } \description{ Add a stream of statements to the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_li_ordinal.Rd0000644000176200001440000000123213544473277020245 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_li_ordinal} \alias{librdf_node_get_li_ordinal} \title{Get the node li object ordinal value.} \usage{ librdf_node_get_li_ordinal ( node, .copy ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Get the node li object ordinal value. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_serializer.Rd0000644000176200001440000000123213544473277017437 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_serializer} \alias{librdf_free_serializer} \title{Destructor - destroys a librdf_serializer object.} \usage{ librdf_free_serializer ( serializer ) } \arguments{ \item{serializer}{the serializer ("_p_librdf_serializer_s")} } \value{ void } \description{ Destructor - destroys a librdf_serializer object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/executeQuery.Rd0000644000176200001440000000102413546477430015427 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{executeQuery} \alias{executeQuery} \alias{executeQuery,Query-method} \title{Execute a query} \usage{ executeQuery(.Object, model) \S4method{executeQuery}{Query}(.Object, model) } \arguments{ \item{.Object}{a Query object} \item{model}{a Model object containing the statements to query} } \value{ a QueryResults object } \description{ The initialize query is executed and the result is returned as a QueryResult object } redland/man/Parser-initialize.Rd0000644000176200001440000000140313546477430016333 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Parser.R \docType{methods} \name{initialize,Parser-method} \alias{initialize,Parser-method} \alias{Parser-initialize} \title{Initialize a Parser object.} \usage{ \S4method{initialize}{Parser}(.Object, world, name = "rdfxml", mimeType = "application/rdf+xml", typeUri = as.character(NA)) } \arguments{ \item{.Object}{the Parser object} \item{world}{a World object} \item{name}{name of the parser factory to use} \item{mimeType}{a mime type of the syntax of the model} \item{typeUri}{a URI for the syntax of the model} } \value{ the Parser object } \description{ A Parser object is initialized for a specific RDF serialization. } \details{ The serialization format that are supported by } redland/man/librdf_statement_get_predicate.Rd0000644000176200001440000000123213544473277021150 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_get_predicate} \alias{librdf_statement_get_predicate} \title{Get the statement predicate.} \usage{ librdf_statement_get_predicate ( statement ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} } \value{ _p_librdf_node_s } \description{ Get the statement predicate. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_serializer_set_namespace.Rd0000644000176200001440000000147413544473277021335 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_set_namespace} \alias{librdf_serializer_set_namespace} \title{Set a namespace URI/prefix mapping.} \usage{ librdf_serializer_set_namespace ( serializer, nspace, prefix, .copy ) } \arguments{ \item{serializer}{serializer object ("_p_librdf_serializer_s")} \item{nspace}{URI of namespace or NULL ("_p_librdf_uri_s")} \item{prefix}{prefix to use or NULL ("character")} \item{.copy}{NA} } \value{ integer } \description{ Set a namespace URI/prefix mapping. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/freeSerializer.Rd0000644000176200001440000000210113546477430015707 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Serializer.R \docType{methods} \name{freeSerializer} \alias{freeSerializer} \alias{freeSerializer,Serializer-method} \title{Free memory used by a librdf serializer.} \usage{ freeSerializer(.Object) \S4method{freeSerializer}{Serializer}(.Object) } \arguments{ \item{.Object}{a Serializer object} } \description{ Free memory used by a librdf serializer. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") filePath <- system.file("extdata/example.rdf", package="redland") parser <- new("Parser", world) parseFileIntoModel(parser, world, filePath, model) # Creat the default "rdfxml" serizlizer serializer <- new("Serializer", world) # At this point, some operations would be performed with the Serializer object. # See '?Serializer' for a complete example. # When the serializer object is no longer needed, the resources it had allocated can be freed. freeSerializer(serializer) rm(serializer) } redland/man/librdf_model_has_arc_in.Rd0000644000176200001440000000150613544473277017537 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_has_arc_in} \alias{librdf_model_has_arc_in} \title{Check if a node has a given property pointing to it.} \usage{ librdf_model_has_arc_in ( model, node, property, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{node}{librdf_node resource node ("_p_librdf_node_s")} \item{property}{librdf_node property node ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Check if a node has a given property pointing to it. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_internal_test_error.Rd0000644000176200001440000000116213544473277020353 0ustar liggesusers\name{librdf_internal_test_error} \alias{librdf_internal_test_error} \title{For internal testing, not part of public API} \usage{ librdf_internal_test_error ( world ) } \arguments{ \item{world}{librdf_world object ("_p_librdf_world_s")} } \value{ void } \description{ This funciton is for internal testing of the Redland software and is not part of the public API. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_minor.Rd0000644000176200001440000000075513544473277017210 0ustar liggesusers\name{rasqal_version_minor} \alias{rasqal_version_minor} \title{Rasqal minor version number.} \usage{ rasqal_version_minor ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Rasqal minor version number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/freeStatement.Rd0000644000176200001440000000224313546477430015551 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Statement.R \docType{methods} \name{freeStatement} \alias{freeStatement} \alias{freeStatement,Statement-method} \title{Free memory used by a librdf statement} \usage{ freeStatement(.Object) \S4method{freeStatement}{Statement}(.Object) } \arguments{ \item{.Object}{a Statement object} } \description{ Free memory used by a librdf statement } \details{ After this method is called, the Statement object is no longer usable and should be deleted \code{"rm(statement)"} and a new object created. This method frees all resources for the statement, as well as each node in the statement. } \examples{ world <- new("World") stmt <- new("Statement", world, subject="http://www.example.com/myevent", predicate="http://example.com/occurredAt", object="Tue Feb 17 14:05:13 PST 2015") # At this point, some operations would be performed with the Statement. # See '?redland' for a complete example. # When the Statement object is no longer needed, the resources it had allocated can be freed. freeStatement(stmt) rm(stmt) } redland/man/librdf_statement_equals.Rd0000644000176200001440000000136613544473277017653 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_equals} \alias{librdf_statement_equals} \title{Check if two statements are equal.} \usage{ librdf_statement_equals ( statement1, statement2, .copy ) } \arguments{ \item{statement1}{first librdf_statement ("_p_librdf_statement_s")} \item{statement2}{second librdf_statement ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Check if two statements are equal. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_arcs.Rd0000644000176200001440000000160113544473277017234 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_arcs} \alias{librdf_model_get_arcs} \title{Return the arcs (predicates) of an arc in an RDF graph given source (subject) and target (object).} \usage{ librdf_model_get_arcs ( model, source, target ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{source}{librdf_node source ("_p_librdf_node_s")} \item{target}{librdf_node target ("_p_librdf_node_s")} } \value{ _p_librdf_iterator_s } \description{ Return the arcs (predicates) of an arc in an RDF graph given source (subject) and target (object). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_locator_uri.Rd0000644000176200001440000000077413544473277016666 0ustar liggesusers\name{raptor_locator_uri} \alias{raptor_locator_uri} \title{Get URI from locator.} \usage{ raptor_locator_uri ( locator ) } \arguments{ \item{locator}{raptor locator ("_p_raptor_locator")} } \value{ character } \description{ Get URI from locator. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_digest_update_string.Rd0000644000176200001440000000127613544473277020504 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_digest_update_string} \alias{librdf_digest_update_string} \title{Add a string to the librdf_digest object.} \usage{ librdf_digest_update_string ( digest, string ) } \arguments{ \item{digest}{the digest ("_p_librdf_digest_s")} \item{string}{string to add ("character")} } \value{ void } \description{ Add a string to the librdf_digest object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_parse_as_stream.Rd0000644000176200001440000000145713544473277021022 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_parse_as_stream} \alias{librdf_parser_parse_as_stream} \title{Parse a URI to a librdf_stream of statements.} \usage{ librdf_parser_parse_as_stream ( parser, uri, inUriorNull ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} \item{uri}{the URI to read ("_p_librdf_uri_s")} \item{inUriorNull}{the base URI to use or NULL ("_p_librdf_uri_s")} } \value{ _p_librdf_stream_s } \description{ Parse a URI to a librdf_stream of statements. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/QueryResults-initialize.Rd0000644000176200001440000000141313546477430017567 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/QueryResults.R \docType{methods} \name{initialize,QueryResults-method} \alias{initialize,QueryResults-method} \alias{QueryResults-initialize} \title{Initialize the QueryResults object.} \usage{ \S4method{initialize}{QueryResults}(.Object, results) } \arguments{ \item{.Object}{the QueryResults object.} \item{results}{a librdf query result} } \value{ the QueryResults object } \description{ The QueryResults object is initialized with the librdf query result from return value of \code{'Query.execute()'}. } \details{ A QueryResults object is returned by the \code{Query.executeQuery()} method, so typically a user does not initialize a QueryResult object by calling \code{new("QueryResult", ...)} } redland/man/librdf_new_node_from_uri_local_name.Rd0000644000176200001440000000162413544473277022144 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_uri_local_name} \alias{librdf_new_node_from_uri_local_name} \title{Constructor - create a new resource librdf_node object with a given URI and local name.} \usage{ librdf_new_node_from_uri_local_name ( world, uri, local_name ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{uri}{librdf_uri object ("_p_librdf_uri_s")} \item{local_name}{local name to append to URI ("character")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new resource librdf_node object with a given URI and local name. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_major.Rd0000644000176200001440000000075613544473277017221 0ustar liggesusers\name{raptor_version_major} \alias{raptor_version_major} \title{Raptor library major version} \usage{ raptor_version_major ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Raptor library major version. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Serializer-class.Rd0000644000176200001440000000300413544473277016156 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Serializer.R \docType{class} \name{Serializer-class} \alias{Serializer-class} \alias{Serializer} \title{An RDF Serializer object.} \description{ The Serializer class provides methods to convert a Model object to other forms, for example, write out a Model to a file. } \section{Slots}{ \describe{ \item{\code{librdf_serializer}}{A redland statement object} }} \section{Methods}{ \itemize{ \item{\code{\link{Serializer-initialize}}}{: Initialize a Serializer object.} \item{\code{\link{setNameSpace}}}{: Set a namespace for the serializer.} \item{\code{\link{serializeToCharacter}}}{: Serialize a model to a character vector.} \item{\code{\link{serializeToFile}}}{: Serialize a model to a file.} \item{\code{\link{freeSerializer}}}{: Free memory used by a librdf serializer.} } } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") filePath <- system.file("extdata/example.rdf", package="redland") parser <- new("Parser", world) parseFileIntoModel(parser, world, filePath, model) # Creat the default "rdfxml" serizlizer serializer <- new("Serializer", world) # Add a namespace definition to the serializer status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") rdf <- serializeToCharacter(serializer, world, model, baseUri="") } \seealso{ \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/librdf_new_hash.Rd0000644000176200001440000000126213544473277016064 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_hash} \alias{librdf_new_hash} \title{Constructor - create a new librdf_hash object.} \usage{ librdf_new_hash ( world, name ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{name}{factory name ("character")} } \value{ _p_librdf_hash_s } \description{ Constructor - create a new librdf_hash object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_log_message_locator.Rd0000644000176200001440000000120313544473277020273 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_log_message_locator} \alias{librdf_log_message_locator} \title{Retrieve locator of log entry.} \usage{ librdf_log_message_locator ( message ) } \arguments{ \item{message}{log message ("_p_librdf_log_message")} } \value{ _p_raptor_locator } \description{ Retrieve locator of log entry. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_uri_string.Rd0000644000176200001440000000142713544473277021361 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_uri_string} \alias{librdf_new_node_from_uri_string} \title{Constructor - create a new librdf_node object from a URI string.} \usage{ librdf_new_node_from_uri_string ( world, string ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{string}{string representing a URI ("character")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new librdf_node object from a URI string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_uri_compare.Rd0000644000176200001440000000140013544473277016567 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_uri_compare} \alias{librdf_uri_compare} \title{Compare two librdf_uri objects lexicographically.} \usage{ librdf_uri_compare ( first_uri, second_uri, .copy ) } \arguments{ \item{first_uri}{librdf_uri object 1 or NULL ("_p_librdf_uri_s")} \item{second_uri}{librdf_uri object 2 or NULL ("_p_librdf_uri_s")} \item{.copy}{NA} } \value{ integer } \description{ Compare two librdf_uri objects lexicographically. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_transaction_commit.Rd0000644000176200001440000000121513544473277021343 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_transaction_commit} \alias{librdf_model_transaction_commit} \title{Commit a transaction.} \usage{ librdf_model_transaction_commit ( model, .copy ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Commit a transaction. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/setNameSpace.Rd0000644000176200001440000000124413546477430015313 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Serializer.R \docType{methods} \name{setNameSpace} \alias{setNameSpace} \alias{setNameSpace,Serializer,World,character,character-method} \title{Set a namespace for the serializer.} \usage{ setNameSpace(.Object, world, namespace, prefix) \S4method{setNameSpace}{Serializer,World,character,character}(.Object, world, namespace, prefix) } \arguments{ \item{.Object}{a Serializer object} \item{world}{a World object} \item{namespace}{the namespace to add to the serializer} \item{prefix}{the namespace prefix to associate with the namespace} } \description{ Set a namespace for the serializer. } redland/man/librdf_new_model_from_model.Rd0000644000176200001440000000132413544473277020443 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_model_from_model} \alias{librdf_new_model_from_model} \title{Copy constructor - create a new librdf_model from an existing one.} \usage{ librdf_new_model_from_model ( model ) } \arguments{ \item{model}{the existing librdf_model ("_p_librdf_model_s")} } \value{ _p_librdf_model_s } \description{ Copy constructor - create a new librdf_model from an existing one. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/parseFileIntoModel.Rd0000644000176200001440000000274513546477430016477 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Parser.R \docType{methods} \name{parseFileIntoModel} \alias{parseFileIntoModel} \alias{parseFileIntoModel,Parser,World,character,Model-method} \title{Parse the contents of a file into a model} \usage{ parseFileIntoModel(.Object, world, filePath, model, ...) \S4method{parseFileIntoModel}{Parser,World,character,Model}(.Object, world, filePath, model, baseUri = as.character(NA)) } \arguments{ \item{.Object}{a Parser object} \item{world}{a World object} \item{filePath}{a file that contains the RDF content} \item{model}{a Model object to parse the RDF content into} \item{...}{(Additional parameters)} \item{baseUri}{a base URI (i.e. XML base) to apply to the model} } \description{ The contents of a the specified file are read and parsed into the initialized Parser object } \details{ The parser factory name specified during initialization determines how the content is parsed, for example, if 'rdfxml' was specified during parser initialization, then the parser expects RDF/XML content as specified in the W3C recommendation (http://www.we3.org/TR/REC-rdf-syntax) } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") # Create the default "rdfxml" parser parser <- new("Parser", world) filePath <- system.file("extdata/example.rdf", package="redland") parseFileIntoModel(parser, world, filePath, model) } redland/man/librdf_version_minor_get.Rd0000644000176200001440000000103513544473277020016 0ustar liggesusers\name{librdf_version_minor_get} \alias{librdf_version_minor_get} \title{Return the Redland librdf minor version number} \usage{ librdf_version_minor_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Return the Redland librdf minor version number } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_parse_string_as_stream.Rd0000644000176200001440000000153613544473277022406 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_parse_string_as_stream} \alias{librdf_parser_parse_string_as_stream} \title{Parse a string of content to a librdf_stream of statements.} \usage{ librdf_parser_parse_string_as_stream ( parser, string, base_uri ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} \item{string}{the string to parse ("character")} \item{base_uri}{the base URI to use or NULL ("_p_librdf_uri_s")} } \value{ _p_librdf_stream_s } \description{ Parse a string of content to a librdf_stream of statements. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_set_feature.Rd0000644000176200001440000000146613544473277020160 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_set_feature} \alias{librdf_parser_set_feature} \title{Set the value of a parser feature.} \usage{ librdf_parser_set_feature ( parser, feature, value, .copy ) } \arguments{ \item{parser}{librdf_parser object ("_p_librdf_parser_s")} \item{feature}{librdf_uri feature property ("_p_librdf_uri_s")} \item{value}{librdf_node feature property value ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Set the value of a parser feature. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_parser_get_accept_header.Rd0000644000176200001440000000122413544473277021250 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_get_accept_header} \alias{librdf_parser_get_accept_header} \title{Get an HTTP Accept value for the parser.} \usage{ librdf_parser_get_accept_header ( parser ) } \arguments{ \item{parser}{parser ("_p_librdf_parser_s")} } \value{ character } \description{ Get an HTTP Accept value for the parser. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_to_file2.Rd0000644000176200001440000000176013544473277021004 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_to_file2} \alias{librdf_query_results_to_file2} \title{Write a query results to a file.} \usage{ librdf_query_results_to_file2 ( query_results, name, mime_type, format_uri, base_uri, .copy ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} \item{name}{filename to write to ("character")} \item{mime_type}{mime type (or NULL) ("character")} \item{format_uri}{URI of syntax to format to (or NULL) ("_p_librdf_uri_s")} \item{base_uri}{Base URI of output formatted syntax (or NULL) ("_p_librdf_uri_s")} \item{.copy}{NA} } \value{ integer } \description{ Write a query results to a file. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/freeQuery.Rd0000644000176200001440000000300613546477430014710 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{freeQuery} \alias{freeQuery} \alias{freeQuery,Query-method} \title{Free memory used by a librdf query} \usage{ freeQuery(.Object) \S4method{freeQuery}{Query}(.Object) } \arguments{ \item{.Object}{a Query object} } \description{ Free memory used by a librdf query } \details{ After this method is called, the Query object is no longer usable and should be deleted \code{"rm(query)"} and a new object created. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") stmt <- new("Statement", world=world, subject="https://orcid.org/0000-0002-2192-403X", predicate="http://www.w3.org/ns/prov#Agent", object="slaughter", objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") status <- addStatement(model, stmt) queryString <- paste("PREFIX orcid: ", "PREFIX dataone: ", "PREFIX prov: ", "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) # Return all results as a string results <- getResults(query, model, "rdfxml") # When the query object is no longer needed, the resources it had allocated can be freed. freeQuery(query) rm(query) } redland/man/librdf_version_string_get.Rd0000644000176200001440000000104213544473277020176 0ustar liggesusers\name{librdf_version_string_get} \alias{librdf_version_string_get} \title{Return the Redland librdf version as a string.} \usage{ librdf_version_string_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ character } \description{ Return the Redland librdf version as a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_get_boolean.Rd0000644000176200001440000000130013544473277021545 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_get_boolean} \alias{librdf_query_results_get_boolean} \title{Get boolean query result.} \usage{ librdf_query_results_get_boolean ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results query_results ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Get boolean query result. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_version_minor.Rd0000644000176200001440000000115013544473277017155 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_version_minor} \alias{librdf_version_minor} \title{Library minor version number as a decimal integer.} \usage{ librdf_version_minor ( .copy ) } \arguments{ \item{.copy}{NA} } \value{ integer } \description{ Library minor version number as a decimal integer. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_get_literal_value_as_latin1.Rd0000644000176200001440000000131713544473277022720 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_literal_value_as_latin1} \alias{librdf_node_get_literal_value_as_latin1} \title{Get the string literal value of the node as ISO Latin-1.} \usage{ librdf_node_get_literal_value_as_latin1 ( node ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} } \value{ character } \description{ Get the string literal value of the node as ISO Latin-1. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_serializer_serialize_model_to_file.Rd0000644000176200001440000000167613544473277023402 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_serializer_serialize_model_to_file} \alias{librdf_serializer_serialize_model_to_file} \title{Write a serialized librdf_model to a file.} \usage{ librdf_serializer_serialize_model_to_file ( serializer, name, inUriOrNull, model, .copy ) } \arguments{ \item{serializer}{the serializer ("_p_librdf_serializer_s")} \item{name}{filename to serialize to ("character")} \item{inUriOrNull}{the base URI to use (or NULL) ("_p_librdf_uri_s")} \item{model}{the librdf_model model to use ("_p_librdf_model_s")} \item{.copy}{NA} } \value{ integer } \description{ Write a serialized librdf_model to a file. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_arcs_in.Rd0000644000176200001440000000136213544473277017726 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_arcs_in} \alias{librdf_model_get_arcs_in} \title{Return the properties pointing to the given resource.} \usage{ librdf_model_get_arcs_in ( model, node ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{node}{librdf_node resource node ("_p_librdf_node_s")} } \value{ _p_librdf_iterator_s } \description{ Return the properties pointing to the given resource. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node.Rd0000644000176200001440000000126613544473277016072 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node} \alias{librdf_new_node} \title{Constructor - create a new librdf_node object with a private identifier.} \usage{ librdf_new_node ( world ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} } \value{ _p_librdf_node_s } \description{ Constructor - create a new librdf_node object with a private identifier. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_statement_is_complete.Rd0000644000176200001440000000133113544473277020654 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_is_complete} \alias{librdf_statement_is_complete} \title{Check if statement is a complete and legal RDF triple.} \usage{ librdf_statement_is_complete ( statement, .copy ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} \item{.copy}{NA} } \value{ integer } \description{ Check if statement is a complete and legal RDF triple. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_context_add_statements.Rd0000644000176200001440000000152413544473277022214 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_context_add_statements} \alias{librdf_model_context_add_statements} \title{Add statements to a model with a context.} \usage{ librdf_model_context_add_statements ( model, context, stream, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{context}{librdf_node context ("_p_librdf_node_s")} \item{stream}{librdf_stream stream object ("_p_librdf_stream_s")} \item{.copy}{NA} } \value{ integer } \description{ Add statements to a model with a context. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/freeParser.Rd0000644000176200001440000000213513546477430015041 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Parser.R \docType{methods} \name{freeParser} \alias{freeParser} \alias{freeParser,Parser-method} \title{Free memory used by a librdf parser} \usage{ freeParser(.Object) \S4method{freeParser}{Parser}(.Object) } \arguments{ \item{.Object}{a Node object} } \description{ Free memory used by a librdf parser } \details{ After freeNode is called, the Node object is no longer usable and should be deleted \code{"rm(nodeName)"} and a new object created. } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") parser <- new("Parser", world) filePath <- system.file("extdata/example.rdf", package="redland") parseFileIntoModel(parser, world, filePath, model) # At this point, some operations would be performed with the Model that has been populated # with the parser. # See '?redland' for a complete example. # When the parser object is no longer needed, the resources it had allocated can be freed. freeParser(parser) rm(parser) } redland/man/raptor_locator_column.Rd0000644000176200001440000000106413544473277017355 0ustar liggesusers\name{raptor_locator_column} \alias{raptor_locator_column} \title{Get column number from locator} \usage{ raptor_locator_column ( locator, .copy ) } \arguments{ \item{locator}{raptor locator ("_p_raptor_locator")} \item{.copy}{logical} } \value{ integer } \description{ Get column number from locator } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_string.Rd0000644000176200001440000000075513544473277017372 0ustar liggesusers\name{rasqal_version_string} \alias{rasqal_version_string} \title{Rasqal version as a string} \usage{ rasqal_version_string ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Rasqal version as a string. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_finished.Rd0000644000176200001440000000133113544473277021064 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_finished} \alias{librdf_query_results_finished} \title{Find out if binding results are exhausted.} \usage{ librdf_query_results_finished ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Find out if binding results are exhausted. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/setQueryResultsLimit.Rd0000644000176200001440000000110113546477430017135 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.R \docType{methods} \name{setQueryResultLimit} \alias{setQueryResultLimit} \alias{setQueryResultsLimit} \alias{setQueryResultLimit,Query-method} \title{Set limit on returned query results} \usage{ setQueryResultLimit(.Object, limit) \S4method{setQueryResultLimit}{Query}(.Object, limit) } \arguments{ \item{.Object}{a Query object} \item{limit}{the result set limit. Specify a value >= to have a limit, or a value < 0 to have no limit.} } \description{ Set limit on returned query results } redland/man/librdf_parser_get_namespaces_seen_count.Rd0000644000176200001440000000134213544473277023043 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_parser_get_namespaces_seen_count} \alias{librdf_parser_get_namespaces_seen_count} \title{Get the number of namespaces seen during parsing} \usage{ librdf_parser_get_namespaces_seen_count ( parser, .copy ) } \arguments{ \item{parser}{librdf_parser object ("_p_librdf_parser_s")} \item{.copy}{NA} } \value{ integer } \description{ Get the number of namespaces seen during parsing } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_find_statements.Rd0000644000176200001440000000135713544473277020644 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_find_statements} \alias{librdf_model_find_statements} \title{Find matching statements in the model.} \usage{ librdf_model_find_statements ( model, statement ) } \arguments{ \item{model}{the model object ("_p_librdf_model_s")} \item{statement}{the partial statement to match ("_p_librdf_statement_s")} } \value{ _p_librdf_stream_s } \description{ Find matching statements in the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_equals.Rd0000644000176200001440000000136513544473277016573 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_equals} \alias{librdf_node_equals} \title{Compare two librdf_node objects for equality.} \usage{ librdf_node_equals ( first_node, second_node, .copy ) } \arguments{ \item{first_node}{first librdf_node node ("_p_librdf_node_s")} \item{second_node}{second librdf_node node ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Compare two librdf_node objects for equality. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_iterator_end.Rd0000644000176200001440000000122613544473277016747 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_iterator_end} \alias{librdf_iterator_end} \title{Test if the iterator has finished.} \usage{ librdf_iterator_end ( iterator, .copy ) } \arguments{ \item{iterator}{the librdf_iterator object ("_p_librdf_iterator_s")} \item{.copy}{NA} } \value{ integer } \description{ Test if the iterator has finished. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_node_from_node.Rd0000644000176200001440000000136513544473277020122 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_node_from_node} \alias{librdf_new_node_from_node} \title{Copy constructor - create a new librdf_node object from an existing librdf_node object.} \usage{ librdf_new_node_from_node ( node ) } \arguments{ \item{node}{librdf_node object to copy ("_p_librdf_node_s")} } \value{ _p_librdf_node_s } \description{ Copy constructor - create a new librdf_node object from an existing librdf_node object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/getBlankNodeId.Rd0000644000176200001440000000164313546477430015560 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Node.R \docType{methods} \name{getBlankNodeId} \alias{getBlankNodeId} \alias{getBlankNodeId,Node-method} \title{Get the blank identifier that has been assigned for a specified Node object} \usage{ getBlankNodeId(.Object) \S4method{getBlankNodeId}{Node}(.Object) } \arguments{ \item{.Object}{a Node object} } \value{ a blank node identifier } \description{ Get the blank identifier that has been assigned for a specified Node object } \details{ When a Node object is initialized with no value specified, i.e. node <- Node(""), a blank node is created and a locally unique identifier is generated by librdf. This method retrieves this identifier and returns in to the caller. } \examples{ world <- new("World") # a blank node is created with a unique identifier generated by librdf node <- new("Node", world, blank=NULL) nodeId <- getBlankNodeId(node) } redland/man/librdf_free_query_results.Rd0000644000176200001440000000127313544473277020221 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_query_results} \alias{librdf_free_query_results} \title{Destructor - destroy a librdf_query_results object.} \usage{ librdf_free_query_results ( query_results ) } \arguments{ \item{query_results}{librdf_query_results object ("_p_librdf_query_results")} } \value{ void } \description{ Destructor - destroy a librdf_query_results object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/addStatement.Rd0000644000176200001440000000121613546477430015357 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Model.R \docType{methods} \name{addStatement} \alias{addStatement} \alias{addStatement,Model,Statement-method} \title{Add a Statement object to the Model} \usage{ addStatement(.Object, statement) \S4method{addStatement}{Model,Statement}(.Object, statement) } \arguments{ \item{.Object}{a Model object} \item{statement}{the Statement that will be added} } \description{ Add a Statement object to the Model } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") } redland/man/librdf_query_results_as_stream.Rd0000644000176200001440000000135113544473277021253 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_as_stream} \alias{librdf_query_results_as_stream} \title{Get a query result as an RDF graph in librdf_stream form} \usage{ librdf_query_results_as_stream ( query_results ) } \arguments{ \item{query_results}{librdf_query_results query_results ("_p_librdf_query_results")} } \value{ _p_librdf_stream_s } \description{ Get a query result as an RDF graph in librdf_stream form } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Node-initialize.Rd0000644000176200001440000000303713546477430015771 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Node.R \docType{methods} \name{initialize,Node-method} \alias{initialize,Node-method} \alias{Node-initialize} \title{Initialize a Node object.} \usage{ \S4method{initialize}{Node}(.Object, world, literal, uri, blank, datatype_uri, language) } \arguments{ \item{.Object}{the Node object to be initialized} \item{world}{a World object} \item{literal}{a literal character value to be assigned to the node} \item{uri}{a uri character value to be assigned to the node} \item{blank}{a blank node identifier to be assigned to the node} \item{datatype_uri}{a uri used to specify the datatype of a literal node, i.e. "http://www.w3.org/2001/XMLSchema#string"} \item{language}{a character value specifying the RDF language tag (excluding the "@" symbol), i.e. "fr"} } \value{ the Node object } \description{ A Node has an associated type corresponding to the RDF component that it is representing. The list of possible types is "resource", "literal" or "blank". } \details{ The url=' and 'literal=' arguments determine which type of Node is created. The Node type affects how the Node is processed in serialization, for example a Node created with 'node1 <- new("Node", literal="http://www.example.com")' is processed differently that a Node created with 'node1 <- new("Node", url="http://www.example.com")', with the former being processed as an RDF literal and the latter processed as an RDF resource. } \note{ Refer to https://www.w3.org/TR/rdf11-concepts information on language tags. } redland/man/librdf_statement_set_object.Rd0000644000176200001440000000130313544473277020471 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_statement_set_object} \alias{librdf_statement_set_object} \title{Set the statement object.} \usage{ librdf_statement_set_object ( statement, object ) } \arguments{ \item{statement}{librdf_statement object ("_p_librdf_statement_s")} \item{object}{librdf_node of object ("_p_librdf_node_s")} } \value{ void } \description{ Set the statement object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_model_with_options.Rd0000644000176200001440000000153213544473277021047 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_model_with_options} \alias{librdf_new_model_with_options} \title{Constructor - Create a new librdf_model with storage.} \usage{ librdf_new_model_with_options ( world, storage, options ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} \item{storage}{librdf_storage storage to use ("_p_librdf_storage_s")} \item{options}{librdf_hash of options to use ("_p_librdf_hash_s")} } \value{ _p_librdf_model_s } \description{ Constructor - Create a new librdf_model with storage. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/rasqal_version_release_get.Rd0000644000176200001440000000102213544473277020327 0ustar liggesusers\name{rasqal_version_release_get} \alias{rasqal_version_release_get} \title{Get the Rasqal release version number.} \usage{ rasqal_version_release_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get the Rasqal release version number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_world_open.Rd0000644000176200001440000000116213544473277016437 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_world_open} \alias{librdf_world_open} \title{Open a created redland world environment.} \usage{ librdf_world_open ( world ) } \arguments{ \item{world}{redland world object ("_p_librdf_world_s")} } \value{ void } \description{ Open a created redland world environment. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_has_arc_out.Rd0000644000176200001440000000151513544473277017740 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_has_arc_out} \alias{librdf_model_has_arc_out} \title{Check if a node has a given property pointing from it.} \usage{ librdf_model_has_arc_out ( model, node, property, .copy ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{node}{librdf_node resource node ("_p_librdf_node_s")} \item{property}{librdf_node property node ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Check if a node has a given property pointing from it. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_results_get_bindings_count.Rd0000644000176200001440000000140313544473277023137 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_results_get_bindings_count} \alias{librdf_query_results_get_bindings_count} \title{Get the number of bound variables in the result.} \usage{ librdf_query_results_get_bindings_count ( query_results, .copy ) } \arguments{ \item{query_results}{librdf_query_results query results ("_p_librdf_query_results")} \item{.copy}{NA} } \value{ integer } \description{ Get the number of bound variables in the result. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/Model-class.Rd0000644000176200001440000000240013544473277015104 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Model.R \docType{class} \name{Model-class} \alias{Model-class} \alias{Model} \title{A Redland Model object} \description{ A Model object is used to store the statements (triples) of an RDF model. } \details{ A Model may be created manually by creating \code{\link{Statement}} and adding them to the Model using \code{\link{addStatement}}, or a Model may be read in from a previously saved file using \code{\link{parseFileIntoModel}}. Once a Model is created, it can be queried using \code{\link{Query}}. } \section{Slots}{ \describe{ \item{\code{librdf_model}}{A redland model object} }} \section{Methods}{ \itemize{ \item{\code{\link{Model-initialize}}}{: Initialize a Model object} \item{\code{\link{addStatement}}}{: Add a Statement object to the Model} \item{\code{\link{freeModel}}}{: Free memory used by a librdf model object} } } \examples{ world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") } \seealso{ View examples of creating models by viewing the \code{'redland_overview'} vignette: \code{'vignette("redland_overview")'} \code{\link{redland}}{: redland package} } \keyword{classes} redland/man/librdf_node_get_uri.Rd0000644000176200001440000000114513544473277016733 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_get_uri} \alias{librdf_node_get_uri} \title{Get the URI for a node object.} \usage{ librdf_node_get_uri ( node ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} } \value{ _p_librdf_uri_s } \description{ Get the URI for a node object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_storage.Rd0000644000176200001440000000120713544473277016734 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_storage} \alias{librdf_free_storage} \title{Destructor - destroy a librdf_storage object.} \usage{ librdf_free_storage ( storage ) } \arguments{ \item{storage}{librdf_storage object ("_p_librdf_storage_s")} } \value{ void } \description{ Destructor - destroy a librdf_storage object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_node_is_blank.Rd0000644000176200001440000000117013544473277017055 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_node_is_blank} \alias{librdf_node_is_blank} \title{Check node is a blank nodeID.} \usage{ librdf_node_is_blank ( node, .copy ) } \arguments{ \item{node}{the node object ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Check node is a blank nodeID. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_query_get_limit.Rd0000644000176200001440000000124113544473277017467 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_query_get_limit} \alias{librdf_query_get_limit} \title{Get the query-specified limit on results.} \usage{ librdf_query_get_limit ( query, .copy ) } \arguments{ \item{query}{librdf_query query object ("_p_librdf_query")} \item{.copy}{NA} } \value{ integer } \description{ Get the query-specified limit on results. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_decimal_get.Rd0000644000176200001440000000101513544473277020333 0ustar liggesusers\name{raptor_version_decimal_get} \alias{raptor_version_decimal_get} \title{Raptor version as a decimal number.} \usage{ raptor_version_decimal_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Raptor version as a decimal number. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_new_statement_from_statement.Rd0000644000176200001440000000171713544473277022261 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_new_statement_from_statement} \alias{librdf_new_statement_from_statement} \title{Copy constructor - create a new librdf_statement from an existing librdf_statement. Creates a deep copy - changes to original statement nodes are not reflected in the copy.} \usage{ librdf_new_statement_from_statement ( statement ) } \arguments{ \item{statement}{librdf_statement to copy ("_p_librdf_statement_s")} } \value{ _p_librdf_statement_s } \description{ Copy constructor - create a new librdf_statement from an existing librdf_statement. Creates a deep copy - changes to original statement nodes are not reflected in the copy. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_major_get.Rd0000644000176200001440000000100213544473277020041 0ustar liggesusers\name{raptor_version_major_get} \alias{raptor_version_major_get} \title{Get Raptor library major version} \usage{ raptor_version_major_get ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Get Raptor library major version. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_model_get_sources.Rd0000644000176200001440000000157313544473277017777 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_get_sources} \alias{librdf_model_get_sources} \title{Return the sources (subjects) of arc in an RDF graph given arc (predicate) and target (object).} \usage{ librdf_model_get_sources ( model, arc, target ) } \arguments{ \item{model}{librdf_model object ("_p_librdf_model_s")} \item{arc}{librdf_node arc ("_p_librdf_node_s")} \item{target}{librdf_node target ("_p_librdf_node_s")} } \value{ _p_librdf_iterator_s } \description{ Return the sources (subjects) of arc in an RDF graph given arc (predicate) and target (object). } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_digest_init.Rd0000644000176200001440000000115413544473277016572 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_digest_init} \alias{librdf_digest_init} \title{(Re)initialise the librdf_digest object.} \usage{ librdf_digest_init ( digest ) } \arguments{ \item{digest}{the digest ("_p_librdf_digest_s")} } \value{ void } \description{ (Re)initialise the librdf_digest object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/raptor_version_release.Rd0000644000176200001440000000075113544473277017524 0ustar liggesusers\name{raptor_version_release} \alias{raptor_version_release} \title{Raptor library release.} \usage{ raptor_version_release ( .copy ) } \arguments{ \item{.copy}{logical} } \value{ integer } \description{ Raptor library release. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/redland.Rd0000644000176200001440000001041413546477430014353 0ustar liggesusers% Generated by roxygen2: do not edit by hand % Please edit documentation in R/redland-package.R \docType{package} \name{redland} \alias{redland} \alias{redland-package} \title{Create, query and write RDF graphs.} \description{ The R package \emph{redland} provides methods to create, query and write information stored in the Resource Description Framework (RDF). This package is implemented as R scripts that provide an R interface (aka "wrapper") to the Redland RDF C libraries. Documentation for the redland R package classes and functions are available from the standard R help facility, for example, \code{'help("Node-class")'}, \code{'?getNodeType'}, etc. An overview of the redland R package is available with the R command: \code{'vignette("redland_overview")'}. The Redland C library functions are described at \url{http://librdf.org/docs/api/index.html}. An introduction to RDF can be found at \url{http://www.w3.org/TR/rdf-primer}. } \details{ The redland R package classes and the corresponding Redland C library types are shown in the following table: \tabular{llll}{ \strong{Concept}\tab \strong{Redland C type}\tab \strong{redland R class}\tab \strong{Purpose}\cr Resource / Literal\tab librdf_node\tab \linkS4class{Node}\tab RDF Model & Syntax nodes\cr Statement / Triple\tab librdf_statement\tab \linkS4class{Statement}\tab RDF Model & Syntax arcs (statements, triples)\cr Model\tab librdf_model\tab \linkS4class{Model}\tab Set of Statements usually held in one Storage.\cr Node\tab librdf_node\tab \linkS4class{Node}\tab The subject, predicate or object of a Statement\cr Storage\tab librdf_storage\tab \linkS4class{Storage}\tab Storage for Models either persistent or in-memory.\cr Parser\tab librdf_parser\tab \linkS4class{Parser}\tab Syntax parsers delivering Stream of Statements or writing to a Model\cr Query\tab librdf_query\tab \linkS4class{Query}\tab Querying of an Model delivering a QueryResults\cr QueryResults\tab librdf_query_results\tab \linkS4class{QueryResults}\tab Results of applying an Query to a Model giving either variable bindings with Node values or Stream of Statements\cr Serializer\tab librdf_serializer\tab \linkS4class{Serializer}\tab Serializes a Model into a syntax such as RDF/XML\cr World\tab librdf_world\tab \linkS4class{World}\tab RDF wrapper class handling Redland startup/shutdown\cr } } \note{ In order to communicate with the Redland RDF C libraries, the redland R package uses an interface layer that is created with the software package \emph{Simplified Wrapper and Interface Generator} (\href{https://github.com/swig/swig}{SWIG}). The relationship between the redland R package and the Redland C libraries is: User script -> redland R package -> SWIG R interface -> Redland C libraries -> RDF data It is recommended that the redland package R classes be used to interact with RDF, as these higher level classes take care of many of the the details of communicating with the Redland C libraries. However, all of the lower level R interface functions generated by SWIG are made available by the redland package. These interface functions usually have names beginning with \code{'librdf_'}, \code{'rasqal_'} or \code{'raptor_'} and are usually the same name as the underlying C library function. Documentation for the R SWIG interface functions can be found via R help i.e. \code{'?librdf_iterator'}. } \examples{ # This example creates the necessary R objects to hold an RDF model and reads # in a file that contains RDF/XML statements. This model is then queried for # and the query results inspected. world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") filePath <- system.file("extdata/example.rdf", package="redland") parser <- new("Parser", world) parseFileIntoModel(parser, world, filePath, model) queryString <- paste("PREFIX dc: ", "SELECT ?a ?c WHERE { ?a dc:description ?c . }", sep="") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) results <- getResults(query, model, "rdfxml") # When the query object is no longer needed, the resources it had allocated can be freed. freeQuery(query) rm(query) } \author{ Matthew B. Jones (NCEAS) and Peter Slaughter (NCEAS) } redland/man/librdf_model_add.Rd0000644000176200001440000000163213544473277016201 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_model_add} \alias{librdf_model_add} \title{Create and add a new statement about a resource to the model.} \usage{ librdf_model_add ( model, subject, predicate, object, .copy ) } \arguments{ \item{model}{model object ("_p_librdf_model_s")} \item{subject}{librdf_node of subject ("_p_librdf_node_s")} \item{predicate}{librdf_node of predicate ("_p_librdf_node_s")} \item{object}{librdf_node of object (literal or resource) ("_p_librdf_node_s")} \item{.copy}{NA} } \value{ integer } \description{ Create and add a new statement about a resource to the model. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/man/librdf_free_parser.Rd0000644000176200001440000000116613544473277016570 0ustar liggesusers% Generated by redland-bindings R program "createLibrdfDocs.R": do not edit by hand \name{librdf_free_parser} \alias{librdf_free_parser} \title{Destructor - destroys a librdf_parser object.} \usage{ librdf_free_parser ( parser ) } \arguments{ \item{parser}{the parser ("_p_librdf_parser_s")} } \value{ void } \description{ Destructor - destroys a librdf_parser object. } \references{ \url{http://librdf.org/docs} } \seealso{ This R function is a wrapper function that directly calls the the Redland RDF C libraries. For more information about Redland RDF, view the online documentation indicated in the 'References' section. } redland/DESCRIPTION0000644000176200001440000000440513550630073013376 0ustar liggesusersPackage: redland Version: 1.0.17-11 Title: RDF Library Bindings in R Authors@R: c( person("Matthew B.", "Jones", role = c("aut", "cre"), email="jones@nceas.ucsb.edu"), person("Peter", "Slaughter", role = c("aut"), email = "slaughter@nceas.ucsb.edu"), person("Jeroen", "Ooms", role = c("aut"), email="jeroen@berkeley.edu"), person("Carl", "Boettiger", role = c("aut"), email = "cboettig@gmail.com"), person("Scott", "Chamberlain", role = c("aut"), email = "myrmecocystus@gmail.com"), person("David", "Beckett", role = c("cph")), person("University of Bristol", role = c("cph")), person("Regents of the University of California", role = c("cph")) ) Date: 2019-10-06 VignetteBuilder: knitr Description: Provides methods to parse, query and serialize information stored in the Resource Description Framework (RDF). RDF is described at . This package supports RDF by implementing an R interface to the Redland RDF C library, described at . In brief, RDF provides a structured graph consisting of Statements composed of Subject, Predicate, and Object Nodes. Depends: R (>= 3.1.1), methods Imports: roxygen2 Suggests: spelling, knitr, testthat, rmarkdown, stringi SystemRequirements: Mac OSX: redland (>= 1.0.14) ; Linux: librdf0 (>= 1.0.14), librdf0-dev (>= 1.0.14) Collate: 'redland.R' 'World.R' 'Node.R' 'Statement.R' 'Storage.R' 'Model.R' 'Parser.R' 'Query.R' 'QueryResults.R' 'Serializer.R' 'mergeNamespace_roclet.R' 'redland-package.R' 'util.R' License: Apache License 2.0 Copyright: See file (inst/)COPYRIGHTS. BugReports: https://github.com/ropensci/redland-bindings/issues RoxygenNote: 6.1.1 URL: https://github.com/ropensci/redland-bindings/tree/master/R/redland https://github.com/ropensci/redland-bindings/tree/master/R Encoding: UTF-8 Language: en-US NeedsCompilation: yes Packaged: 2019-10-07 03:59:24 UTC; slaughter Author: Matthew B. Jones [aut, cre], Peter Slaughter [aut], Jeroen Ooms [aut], Carl Boettiger [aut], Scott Chamberlain [aut], David Beckett [cph], University of Bristol [cph], Regents of the University of California [cph] Maintainer: Matthew B. Jones Repository: CRAN Date/Publication: 2019-10-13 14:10:03 UTC redland/build/0000755000176200001440000000000013546534034012771 5ustar liggesusersredland/build/vignette.rds0000644000176200001440000000032213546534034015325 0ustar liggesusersb```b`fcd`b2 1# ')JMIK/K-*L- MAS U&%=$7M@ U@T ּb4c]R RR@g;<E T [fN*ސ89]1 棸(\^P44@btr$$ X.redland/tests/0000755000176200001440000000000013544473277013045 5ustar liggesusersredland/tests/spelling.R0000644000176200001440000000020213544473277014777 0ustar liggesusersif(requireNamespace('spelling', quietly=TRUE)) spelling::spell_check_test(vignettes = TRUE, error = FALSE, skip_on_cran = TRUE) redland/tests/test-all.R0000644000176200001440000000131713544473277014717 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # library("testthat") test_check("redland") redland/tests/testthat/0000755000176200001440000000000013544473277014705 5ustar liggesusersredland/tests/testthat/test.Storage.R0000644000176200001440000000175513544473277017422 0ustar liggesuserscontext("Storage tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Storage constructor", { library(redland) world <- new("World") expect_false(is.null(world)) # Test creating the Storage system storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") expect_false(is.null(storage)) expect_match(class(storage@librdf_storage), "_p_librdf_storage_s") # Test that storage creation fails if world is not provided or is null err <- try(storage <- new("Storage", world=NULL, "hashes", name="", options="hash-type='memory'"), silent=TRUE) expect_match(class(err), "try-error") # Test that storage creation succeeds even if type and related options are not provided (use defaults) err <- try(storage <- new("Storage", world=world), silent=TRUE) expect_match(class(err), "Storage") })redland/tests/testthat/test.Query.R0000644000176200001440000001205613544473277017117 0ustar liggesuserscontext("Query tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Query works", { library(redland) world <- new("World") expect_false(is.null(world)) world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") # Literal for object node has RDF language tag stmt <- new("Statement", world = world, subject="", predicate="http://schema.org/name", object="Maëlle Salmon", language="fr") addStatement(model, stmt) queryString <-'SELECT ?s ?p ?o WHERE { ?s ?p ?o}' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) results <- getResults(query, model, "turtle") expect_true(grepl("http://schema.org/name", results)) # The Redlands library can return UTF characters that are outside the # ASCII range as the unicode literal string, i.e. https://en.wikipedia.org/wiki/List_of_Unicode_characters. # If 'stringi' is available, then check the original representation, otherwise check the escaped codepoint # representation. if(require("stringi", character.only = TRUE)) { expect_match(stringi::stri_unescape_unicode(results), "Maëlle Salmon") } else { expect_match(results$o, '"Ma\\\\u00EBlle Salmon"@fr') } freeQuery(query) rm(query) freeStorage(storage) rm(storage) freeModel(model) rm(model) freeWorld(world) rm(world) }) test_that("getResults, writeResults work", { library(redland) world <- new("World") expect_false(is.null(world)) storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") stmt <- new("Statement", world=world, subject="https://orcid.org/0000-0002-2192-403X", predicate="http://www.w3.org/ns/prov#Agent", object="slaughter", objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") status <- addStatement(model, stmt) queryString <- paste("PREFIX orcid: ", "PREFIX dataone: ", "PREFIX prov: ", "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) # Return all results as a string results <- getResults(query, model, "rdfxml") expect_true(grepl("0000-0002-2192-403X", results)) expect_true(grepl("slaughter", results)) results <- getResults(query, model, "turtle") expect_true(grepl("slaughter", results)) expect_true(grepl("0000-0002-2192-403X", results)) results <- getResults(query, model, "json") expect_true(grepl("slaughter", results)) expect_true(grepl("0000-0002-2192-403X", results)) # When the query object is no longer needed, the resources it had allocated can be freed. freeQuery(query) rm(query) # Test writeResults world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world, storage, options="") stmt <- new("Statement", world=world, subject="https://orcid.org/0000-0002-2192-403X", predicate="http://www.w3.org/ns/prov#Agent", object="slaughter", objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") status <- addStatement(model, stmt) queryString <- paste("PREFIX orcid: ", "PREFIX dataone: ", "PREFIX prov: ", "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) # Return all results as a string tf <- tempfile() writeResults(query, model, file=tf, mimeType="application/x-turtle") inbuf <- readLines(tf) expect_true(any(grepl("slaughter", inbuf))) expect_true(any(grepl("0000-0002-2192-403X", inbuf))) # Ntriples tf <- tempfile() writeResults(query, model, file=tf, mimeType="text/plain") inbuf <- readLines(tf) expect_true(any(grepl("slaughter", inbuf))) expect_true(any(grepl("0000-0002-2192-403X", inbuf))) tf <- tempfile() writeResults(query, model, file=tf, mimeType="application/json") inbuf <- readLines(tf) expect_true(any(grepl("slaughter", inbuf))) expect_true(any(grepl("0000-0002-2192-403X", inbuf))) tf <- tempfile() writeResults(query, model, file=tf, mimeType="text/html") inbuf <- readLines(tf) expect_true(any(grepl("slaughter", inbuf))) expect_true(any(grepl("0000-0002-2192-403X", inbuf))) # When the query object is no longer needed, the resources it had allocated can be freed. freeQuery(query) rm(query) freeStorage(storage) rm(storage) freeModel(model) rm(model) freeWorld(world) rm(world) })redland/tests/testthat/test.World.R0000644000176200001440000000072613544473277017102 0ustar liggesuserscontext("World tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("World constructor", { library(redland) world <- new("World"); expect_match(class(world), "World") expect_match(class(world@librdf_world), "_p_librdf_world_s") err <- try(freeWorld(world), silent=TRUE) expect_false(class(err) == "try-error") })redland/tests/testthat/test.Statement.R0000644000176200001440000000750413544473277017760 0ustar liggesuserscontext("Statement tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Statement constructor", { library(redland) world <- new("World") expect_false(is.null(world)) # Test creating Subject, predicate, and object Nodes subject <- new("Node", world, literal="subject") expect_match(class(subject@librdf_node), "_p_librdf_node_s") predicate <- new("Node", world, literal="subject") expect_match(class(predicate@librdf_node), "_p_librdf_node_s") object <- new("Node", world, literal="subject") expect_match(class(object@librdf_node), "_p_librdf_node_s") # Test creating the Statement stmt <- new("Statement", world, subject, predicate, object) expect_false(is.null(stmt)) expect_match(class(stmt@librdf_statement), "_p_librdf_statement_s") # Test that statement creation fails if world is not provided or is null err <- try(stmt <- new("Statement", world=NULL, subject=subject, predicate=predicate, object=object), silent=TRUE) expect_match(class(err), "try-error") # Test that statement creation fails if subject, predicate, or object is not provided or is null err <- try(stmt <- new("Statement", world=world, subject=NULL, predicate=predicate, object=object), silent=TRUE) expect_match(class(err), "try-error") err <- try(stmt <- new("Statement", world=world, subject=subject, predicate=NULL, object=object), silent=TRUE) expect_match(class(err), "try-error") err <- try(stmt <- new("Statement", world=world, subject=subject, predicate=predicate, object=NULL), silent=TRUE) expect_match(class(err), "try-error") # Test statement creation when subject, predicate, object are passed in as character and RDF type is not specified stmt <- new("Statement", world=world, subject="https://cn.dataone.org/cn/v1/resolve/resourceMap_5cbcdecd-6b0e-4b24-a0be-20291b2e49a7#aggregation", predicate="http://purl.org/dc/terms/identifier", object="resourceMap_5cbcdecd-6b0e-4b24-a0be-20291b2e49a7^^xsd:string") expect_match(getTermType(stmt, "subject"), "resource") expect_match(getTermType(stmt, "predicate"), "resource") expect_match(getTermType(stmt, "object"), "literal") # Test stmt <- new("Statement", world=world, subject="_:foo1", predicate="http://purl.org/dc/terms/identifier", object=NULL) expect_match(getTermType(stmt, "subject"), "blank") expect_match(getTermType(stmt, "predicate"), "resource") expect_match(getTermType(stmt, "object"), "blank") err <- try(freeStatement(stmt), silent=TRUE) expect_false(class(err) == "try-error") stmt <- new("Statement", world=world, subject=NULL, predicate="http://purl.org/dc/terms/identifier", object="id1234") expect_match(getTermType(stmt, "subject"), "blank") expect_match(getTermType(stmt, "predicate"), "resource") expect_match(getTermType(stmt, "object"), "literal") err <- try(freeStatement(stmt), silent=TRUE) expect_false(class(err) == "try-error") # Test statement creation when subject, predicate and object are passed in as charater and RDF types are specified stmt <- new("Statement", world=world, subject="http://www.exmaple.com/subject", predicate="http://purl.org/dc/terms/identifier", object="http://www.exmaple.com/object", subjectType="blank", objectType="literal") expect_match(getTermType(stmt, "subject"), "blank") expect_match(getTermType(stmt, "predicate"), "resource") expect_match(getTermType(stmt, "object"), "literal") err <- try(freeStatement(stmt), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeWorld(world), silent=TRUE) expect_false(class(err) == "try-error") })redland/tests/testthat/test.redland_base.R0000644000176200001440000000630313544501507020377 0ustar liggesuserscontext("librdf base API tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("librdf basic functions", { library(redland) world <- librdf_new_world(); expect_match(class(world), "_p_librdf_world_s") storage <- librdf_new_storage(world,'hashes','dummy',"new=yes,hash-type='memory'") expect_match(class(storage), "_p_librdf_storage_s") model <- librdf_new_model(world,storage,'') expect_match(class(model), "_p_librdf_model_s") parser <- librdf_new_parser(world,'rdfxml','application/rdf+xml',NULL) expect_match(class(parser), "_p_librdf_parser_s") uri <- librdf_new_uri(world,paste0('file:',system.file('extdata/dc.rdf', package='redland'))) expect_match(class(uri), "_p_librdf_uri_s") rv <- librdf_parser_parse_into_model(parser,uri,uri,model) expect_that(rv, equals(0)) librdf_free_uri(uri); librdf_free_parser(parser); query <- librdf_new_query(world, 'sparql', NULL, "PREFIX dc: SELECT ?a ?c ?d WHERE { ?a dc:title ?c . OPTIONAL { ?a dc:related ?d } }", NULL) results <- librdf_model_query_execute(model, query); expect_false(is.null(results)) expect_match(class(results), "_p_librdf_query_results") # Convert the whole sparql result to a string and check its value qstr <- librdf_query_results_to_string2(results, "rdfxml", "application/rdf+xml", NULL, NULL) expect_match(qstr, "http://www.dajobe.org/") expect_match(qstr, "Beckett") # Test adding a new Statement to the model about <- "http://matt.magisa.org/" subject <- librdf_new_node_from_uri_string(world, about) expect_false(is.null(subject)) expect_match(class(subject), "_p_librdf_node_s") pred <- librdf_new_node_from_uri_string(world, "http://purl.org/dc/elements/1.1/title") expect_false(is.null(pred)) expect_match(class(pred), "_p_librdf_node_s") object <- librdf_new_node_from_literal(world, "Matt Jones' Home Page", "", 0) expect_false(is.null(object)) expect_match(class(object), "_p_librdf_node_s") statement <- librdf_new_statement_from_nodes(world, subject, pred, object) expect_false(is.null(statement)) expect_match(class(statement), "_p_librdf_statement_s") rc <- librdf_model_add_statement(model, statement) expect_that(rc, equals(0)) # Don't need to call librdf_free_node, just librdf_free_statement. librdf_free_statement(statement) # Test serialization of the model to a text file serializer <- librdf_new_serializer(world, "rdfxml", "", NULL); expect_false(is.null(serializer)) expect_match(class(serializer), "_p_librdf_serializer") base = librdf_new_uri(world, "http://example.org/base.rdf"); filePath <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".rdf") librdf_serializer_serialize_model_to_file(serializer,filePath,base,model); expect_true(file.exists(filePath)) unlink(filePath) # Free resources librdf_free_serializer(serializer); librdf_free_uri(base); librdf_free_model(model); librdf_free_storage(storage); expect_that("Reached end.", equals("Reached end.")) }) redland/tests/testthat/test.Parser.R0000644000176200001440000000405713544473277017250 0ustar liggesuserscontext("Parser tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Parser constructor", { library(redland) world <- new("World") expect_false(is.null(world)) # Test creating the Storage system storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") expect_false(is.null(storage)) expect_match(class(storage@librdf_storage), "_p_librdf_storage_s") # Test creating the Model model <- new("Model", world, storage, options="") expect_false(is.null(model)) expect_match(class(model@librdf_model), "_p_librdf_model_s") # Test that model creation fails if world is not provided or is null err <- try(model <- new("Model", world=NULL, storage, options=""), silent=TRUE) expect_match(class(err), "try-error") expect_false(is.null(model)) expect_match(class(model@librdf_model), "_p_librdf_model_s") # Test parsing an RDF document into a Model parser <- new("Parser", world) expect_false(is.null(parser)) expect_match(class(parser@librdf_parser), "_p_librdf_parser_s") parseFileIntoModel(parser, world, system.file('extdata/example.rdf', package='redland'), model) # Test creating a Serializer and serializing the content just parsed into the model serializer <- new("Serializer", world) expect_false(is.null(serializer)) expect_match(class(serializer@librdf_serializer), "_p_librdf_serializer_s") # Test performing a serialization on an RDF model rdf <- serializeToCharacter(serializer, world, model) expect_match(rdf, "John Smith") err <- try(freeModel(model), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeStorage(storage), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeParser(parser), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeSerializer(serializer), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeWorld(world), silent=TRUE) expect_false(class(err) == "try-error") }) redland/tests/testthat/test.Model.R0000644000176200001440000000405013544473277017045 0ustar liggesuserscontext("Model tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Model constructor", { library(redland) world <- new("World") expect_false(is.null(world)) # Test creating the Storage system storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") expect_false(is.null(storage)) expect_match(class(storage@librdf_storage), "_p_librdf_storage_s") # Test creating the Model model <- new("Model", world, storage, options="") expect_false(is.null(model)) expect_match(class(model@librdf_model), "_p_librdf_model_s") # Test that model creation fails if world is not provided or is null err <- try(model <- new("Model", world=NULL, storage, options=""), silent=TRUE) expect_match(class(err), "try-error") # Test that model creation fails if storage is not provided or is null err <- try(model <- new("Model", world, storage=NULL, options=""), silent=TRUE) expect_match(class(err), "try-error") # Test adding a Statement to the Model subject <- new("Node", world, uri="http://www.dajobe.org") expect_match(class(subject@librdf_node), "_p_librdf_node_s") predicate <- new("Node", world, uri="http://purl.org/dc/elements/1.1/creator") expect_match(class(predicate@librdf_node), "_p_librdf_node_s") object <- new("Node", world, literal="John Smith") expect_match(class(object@librdf_node), "_p_librdf_node_s") statement <- new("Statement", world, subject, predicate, object) expect_false(is.null(statement)) expect_match(class(statement@librdf_statement), "_p_librdf_statement_s") addStatement(model, statement) err <- try(freeStatement(statement), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeModel(model), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeStorage(storage), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeWorld(world), silent=TRUE) expect_false(class(err) == "try-error") })redland/tests/testthat/test.Node.R0000644000176200001440000000662713544473277016706 0ustar liggesuserscontext("Node tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Node constructor", { library(redland) world <- new("World") expect_false(is.null(world)) # Test creating a blank node node <- new("Node", world) expect_false(is.null(node)) expect_match(class(node), "Node") expect_match(getNodeType(node), "blank") # Test creating a blank node with librdf generated identifier node <- new("Node", world, blank=NULL) expect_match(class(node@librdf_node), "_p_librdf_node_s") expect_match(getNodeType(node), "blank") # Test creating a blank node with librdf generated identifier node <- new("Node", world, blank="_:1234") expect_match(class(node@librdf_node), "_p_librdf_node_s") expect_match(getNodeType(node), "blank") # Test creating a node with a literal value node <- new("Node", world, "Fee Fi Fo Fum") expect_match(class(node@librdf_node), "_p_librdf_node_s") expect_match(getNodeType(node), "literal") # err <- try(freeNode(node), silent=TRUE) # expect_match(class(err), not("try-error")) # Test creating a node with a literal value node <- new("Node", world, literal="Fee Fi Fo Fum") expect_match(class(node@librdf_node), "_p_librdf_node_s") expect_match(getNodeType(node), "literal") # Test creating a node with a URI value node <- new("Node", world, uri="http://www.example.com/") expect_match(class(node@librdf_node), "_p_librdf_node_s") expect_match(getNodeType(node), "resource") # Test that node creation fails if world is not provided or is null err <- try(node <- new("Node", literal="Fee Fi Fo Fum"), silent=TRUE) expect_match(class(err), "try-error") err <- try(node <- new("Node", world=NULL, literal="Fee Fi Fo Fum"), silent=TRUE) expect_match(class(err), "try-error") # Test that node values can be assigned and retrieved # a blank node is created with a unique identifier generated by librdf node <- new("Node", world, blank=NULL) expect_gt(nchar(getNodeValue(node)), 0) # a blank node is created with the user specified identifier, i.e. "_:id1" # THe blank node id will be returned as a string node <- new("Node", world, blank="_:b1") expect_match(getNodeValue(node), "_:b1") # a node type of 'literal' is created node <- new("Node", world, literal="A Node Value") expect_match(getNodeValue(node), "A Node Value") # a Node type of 'resource' is created node <- new("Node", world, uri="http://www.example.com") expect_match(getNodeValue(node), "http://www.example.com") # Create a literal node without a language tag node <- new("Node", world, literal="just plain text") expect_match(getNodeValue(node), "just plain text") node <- new("Node", world, literal="Jean Pierre Rampal", language="fr") expect_match(getNodeValue(node), '\"Jean Pierre Rampal"@fr\"') # Activate this check when testthat properly handles UTF-8 in tests. This # test works fine from the command line on all platforms, but when testthat # reads a test in, it is reading in the code as ASCII and ignoring the package # encoding, therefor the test is not performed with the correct string. # # Create a literal node, specifying a language encoding #node <- new("Node", world, literal="Gérard de La Martinière", language="fr") #expect_match(getNodeValue(node), "\"Gérard de La Martinière\"@fr\"") })redland/tests/testthat/test.Serializer.R0000644000176200001440000000571513544473277020127 0ustar liggesuserscontext("Serializer tests") test_that("redland library loads", { library(redland) # Add a line to this test to prevent 'Empty test' (skipped) msg. expect_true(require(redland)) }) test_that("Serializer constructor", { library(redland) world <- new("World") expect_false(is.null(world)) # Test creating the Storage system storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") expect_false(is.null(storage)) expect_match(class(storage@librdf_storage), "_p_librdf_storage_s") # Test creating the Model model <- new("Model", world, storage, options="") expect_false(is.null(model)) expect_match(class(model@librdf_model), "_p_librdf_model_s") # Test that model creation fails if world is not provided or is null err <- try(model <- new("Model", world=NULL, storage, options=""), silent=TRUE) expect_match(class(err), "try-error") expect_false(is.null(model)) expect_match(class(model@librdf_model), "_p_librdf_model_s") # Test adding a Statement to the Model subject <- new("Node", world, uri="http://www.johnsmith.com/") expect_match(class(subject@librdf_node), "_p_librdf_node_s") predicate <- new("Node", world, uri="http://purl.org/dc/elements/1.1/creator") expect_match(class(predicate@librdf_node), "_p_librdf_node_s") object <- new("Node", world, literal="John Smith", datatype_uri="http://www.w3.org/2001/XMLSchema#string") expect_match(class(object@librdf_node), "_p_librdf_node_s") statement <- new("Statement", world, subject, predicate, object) expect_false(is.null(statement)) expect_match(class(statement@librdf_statement), "_p_librdf_statement_s") addStatement(model, statement) # Test creating a Serializer serializer <- new("Serializer", world, mimeType="application/rdf+xml") expect_false(is.null(serializer)) expect_match(class(serializer@librdf_serializer), "_p_librdf_serializer_s") # Test adding a namespace to a serializer status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") expect_that(status, equals(0)) # Test serialization of an RDF model to a string rdf <- serializeToCharacter(serializer, world, model, "") expect_match(rdf, "John Smith") # Test serialization of an RDF model to a file filePath <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".rdf") status <- serializeToFile(serializer, world, model, filePath) found <- grep("John Smith", readLines(filePath)) expect_that(found, is_more_than(0)) unlink(filePath) err <- try(freeStatement(statement), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeSerializer(serializer), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeModel(model), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeStorage(storage), silent=TRUE) expect_false(class(err) == "try-error") err <- try(freeWorld(world), silent=TRUE) expect_false(class(err) == "try-error") })redland/src/0000755000176200001440000000000013546534034012461 5ustar liggesusersredland/src/util.c0000644000176200001440000000055213544473277013615 0ustar liggesusers#include #include #include SEXP isnull(SEXP pointer) { void *ptr = R_ExternalPtrAddr(pointer); SEXP rvalue = PROTECT(NEW_LOGICAL(1)); if (ptr==NULL) { LOGICAL_DATA(rvalue)[0] = (Rboolean)TRUE; } else { LOGICAL_DATA(rvalue)[0] = (Rboolean)FALSE; } UNPROTECT(1); return(rvalue); } redland/src/redland.c0000644000176200001440000103550613546531727014256 0ustar liggesusers/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIGR #define SWIGR #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Remove global namespace pollution */ #if !defined(SWIG_NO_R_NO_REMAP) # define R_NO_REMAP #endif #if !defined(SWIG_NO_STRICT_R_HEADERS) # define STRICT_R_HEADERS #endif #include #include #ifdef __cplusplus #include extern "C" { #endif /* for raw pointer */ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_R_ConvertPtr(obj, pptr, type, flags) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_R_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewPointerObj(ptr, type, flags) SWIG_R_NewPointerObj(ptr, type, flags) #include #include #include #if R_VERSION >= R_Version(2,6,0) #define VMAXTYPE void * #else #define VMAXTYPE char * #endif /* This is mainly a way to avoid having lots of local variables that may conflict with those in the routine. Change name to R_SWIG_Callb.... */ typedef struct RCallbackFunctionData { SEXP fun; SEXP userData; SEXP expr; SEXP retValue; int errorOccurred; SEXP el; /* Temporary pointer used in the construction of the expression to call the R function. */ struct RCallbackFunctionData *previous; /* Stack */ } RCallbackFunctionData; static RCallbackFunctionData *callbackFunctionDataStack; SWIGRUNTIME SEXP R_SWIG_debug_getCallbackFunctionData() { int n, i; SEXP ans; RCallbackFunctionData *p = callbackFunctionDataStack; n = 0; while(p) { n++; p = p->previous; } Rf_protect(ans = Rf_allocVector(VECSXP, n)); for(p = callbackFunctionDataStack, i = 0; i < n; p = p->previous, i++) SET_VECTOR_ELT(ans, i, p->fun); Rf_unprotect(1); return(ans); } SWIGRUNTIME RCallbackFunctionData * R_SWIG_pushCallbackFunctionData(SEXP fun, SEXP userData) { RCallbackFunctionData *el; el = (RCallbackFunctionData *) calloc(1, sizeof(RCallbackFunctionData)); el->fun = fun; el->userData = userData; el->previous = callbackFunctionDataStack; callbackFunctionDataStack = el; return(el); } SWIGRUNTIME SEXP R_SWIG_R_pushCallbackFunctionData(SEXP fun, SEXP userData) { R_SWIG_pushCallbackFunctionData(fun, userData); return R_NilValue; } SWIGRUNTIME RCallbackFunctionData * R_SWIG_getCallbackFunctionData() { if(!callbackFunctionDataStack) { Rf_error("Supposedly impossible error occurred in the SWIG callback mechanism." " No callback function data set."); } return callbackFunctionDataStack; } SWIGRUNTIME void R_SWIG_popCallbackFunctionData(int doFree) { RCallbackFunctionData *el = NULL; if(!callbackFunctionDataStack) return ; /* Error !!! */ el = callbackFunctionDataStack ; callbackFunctionDataStack = callbackFunctionDataStack->previous; if(doFree) free(el); } /* Interface to S function is(obj, type) which is to be used to determine if an external pointer inherits from the right class. Ideally, we would like to be able to do this without an explicit call to the is() function. When the S4 class system uses its own SEXP types, then we will hopefully be able to do this in the C code. Should we make the expression static and preserve it to avoid the overhead of allocating each time. */ SWIGRUNTIME int R_SWIG_checkInherits(SEXP obj, SEXP tag, const char *type) { SEXP e, val; int check_err = 0; Rf_protect(e = Rf_allocVector(LANGSXP, 3)); SETCAR(e, Rf_install("extends")); SETCAR(CDR(e), Rf_mkString(CHAR(PRINTNAME(tag)))); SETCAR(CDR(CDR(e)), Rf_mkString(type)); val = R_tryEval(e, R_GlobalEnv, &check_err); Rf_unprotect(1); if(check_err) return(0); return(LOGICAL(val)[0]); } SWIGRUNTIME void * R_SWIG_resolveExternalRef(SEXP arg, const char * const type, const char * const argName, Rboolean nullOk) { void *ptr; SEXP orig = arg; if(TYPEOF(arg) != EXTPTRSXP) arg = GET_SLOT(arg, Rf_mkString("ref")); if(TYPEOF(arg) != EXTPTRSXP) { Rf_error("argument %s must be an external pointer (from an ExternalReference)", argName); } ptr = R_ExternalPtrAddr(arg); if(ptr == NULL && nullOk == (Rboolean) FALSE) { Rf_error("the external pointer (of type %s) for argument %s has value NULL", argName, type); } if(type[0] && R_ExternalPtrTag(arg) != Rf_install(type) && strcmp(type, "voidRef") && !R_SWIG_checkInherits(orig, R_ExternalPtrTag(arg), type)) { Rf_error("the external pointer for argument %s has tag %s, not the expected value %s", argName, CHAR(PRINTNAME(R_ExternalPtrTag(arg))), type); } return(ptr); } SWIGRUNTIME void R_SWIG_ReferenceFinalizer(SEXP el) { void *ptr = R_SWIG_resolveExternalRef(el, "", "", (Rboolean) 1); Rf_PrintValue(el); if(ptr) { if(TYPEOF(el) != EXTPTRSXP) el = GET_SLOT(el, Rf_mkString("ref")); if(TYPEOF(el) == EXTPTRSXP) R_ClearExternalPtr(el); free(ptr); } return; } typedef enum {R_SWIG_EXTERNAL, R_SWIG_OWNER } R_SWIG_Owner; SWIGRUNTIME SEXP SWIG_MakePtr(void *ptr, const char *typeName, R_SWIG_Owner owner) { SEXP external, r_obj; Rf_protect(external = R_MakeExternalPtr(ptr, Rf_install(typeName), R_NilValue)); Rf_protect(r_obj = NEW_OBJECT(MAKE_CLASS((char *) typeName))); if(owner) R_RegisterCFinalizer(external, R_SWIG_ReferenceFinalizer); r_obj = SET_SLOT(r_obj, Rf_mkString((char *) "ref"), external); SET_S4_OBJECT(r_obj); Rf_unprotect(2); return(r_obj); } SWIGRUNTIME SEXP R_SWIG_create_SWIG_R_Array(const char *typeName, SEXP ref, int len) { SEXP arr; /*XXX remove the char * cast when we can. MAKE_CLASS should be declared appropriately. */ Rf_protect(arr = NEW_OBJECT(MAKE_CLASS((char *) typeName))); Rf_protect(arr = R_do_slot_assign(arr, Rf_mkString("ref"), ref)); Rf_protect(arr = R_do_slot_assign(arr, Rf_mkString("dims"), Rf_ScalarInteger(len))); Rf_unprotect(3); SET_S4_OBJECT(arr); return arr; } #define ADD_OUTPUT_ARG(result, pos, value, name) r_ans = AddOutputArgToReturn(pos, value, name, OutputValues); SWIGRUNTIME SEXP AddOutputArgToReturn(int pos, SEXP value, const char *name, SEXP output) { SET_VECTOR_ELT(output, pos, value); return(output); } /* Create a new pointer object */ SWIGRUNTIMEINLINE SEXP SWIG_R_NewPointerObj(void *ptr, swig_type_info *type, int flags) { SEXP rptr = PROTECT(R_MakeExternalPtr(ptr, PROTECT(R_MakeExternalPtr(type, R_NilValue, R_NilValue)), R_NilValue)); SET_S4_OBJECT(rptr); UNPROTECT(2); return rptr; } /* Convert a pointer value */ SWIGRUNTIMEINLINE int SWIG_R_ConvertPtr(SEXP obj, void **ptr, swig_type_info *ty, int flags) { void *vptr; if (!obj) return SWIG_ERROR; if (obj == R_NilValue) { if (ptr) *ptr = NULL; return SWIG_OK; } vptr = R_ExternalPtrAddr(obj); if (ty) { swig_type_info *to = (swig_type_info*) R_ExternalPtrAddr(R_ExternalPtrTag(obj)); if (to == ty) { if (ptr) *ptr = vptr; } else { swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); int newmemory = 0; if (ptr) *ptr = SWIG_TypeCast(tc,vptr,&newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } } else { if (ptr) *ptr = vptr; } return SWIG_OK; } SWIGRUNTIME swig_module_info * SWIG_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; return (swig_module_info *) type_pointer; } SWIGRUNTIME void SWIG_SetModule(void *v, swig_module_info *swig_module) { } typedef struct { void *pack; swig_type_info *ty; size_t size; } RSwigPacked; /* Create a new packed object */ SWIGRUNTIMEINLINE SEXP RSwigPacked_New(void *ptr, size_t sz, swig_type_info *ty) { SEXP rptr; RSwigPacked *sobj = (RSwigPacked*) malloc(sizeof(RSwigPacked)); if (sobj) { void *pack = malloc(sz); if (pack) { memcpy(pack, ptr, sz); sobj->pack = pack; sobj->ty = ty; sobj->size = sz; } else { sobj = 0; } } rptr = R_MakeExternalPtr(sobj, R_NilValue, R_NilValue); return rptr; } SWIGRUNTIME swig_type_info * RSwigPacked_UnpackData(SEXP obj, void *ptr, size_t size) { RSwigPacked *sobj = (RSwigPacked *)R_ExternalPtrAddr(obj); if (sobj->size != size) return 0; memcpy(ptr, sobj->pack, size); return sobj->ty; } SWIGRUNTIMEINLINE SEXP SWIG_R_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { return ptr ? RSwigPacked_New((void *) ptr, sz, type) : R_NilValue; } /* Convert a packed value value */ SWIGRUNTIME int SWIG_R_ConvertPacked(SEXP obj, void *ptr, size_t sz, swig_type_info *ty) { swig_type_info *to = RSwigPacked_UnpackData(obj, ptr, sz); if (!to) return SWIG_ERROR; if (ty) { if (to != ty) { /* check type cast? */ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) return SWIG_ERROR; } } return SWIG_OK; } #ifdef __cplusplus #define SWIG_exception_noreturn(code, msg) do { throw std::runtime_error(msg); } while(0) #else #define SWIG_exception_noreturn(code, msg) do { return result; } while(0) #endif #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { Rf_warning(msg); return Rf_ScalarLogical(NA_LOGICAL); return Rf_ScalarLogical(NA_LOGICAL); } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { Rf_warning(msg); return Rf_ScalarLogical(NA_LOGICAL); return Rf_ScalarLogical(NA_LOGICAL); } else /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_char swig_types[0] #define SWIGTYPE_p_librdf_digest_s swig_types[1] #define SWIGTYPE_p_librdf_hash_s swig_types[2] #define SWIGTYPE_p_librdf_iterator_s swig_types[3] #define SWIGTYPE_p_librdf_log_func swig_types[4] #define SWIGTYPE_p_librdf_log_message swig_types[5] #define SWIGTYPE_p_librdf_model_s swig_types[6] #define SWIGTYPE_p_librdf_node_s swig_types[7] #define SWIGTYPE_p_librdf_parser_s swig_types[8] #define SWIGTYPE_p_librdf_query swig_types[9] #define SWIGTYPE_p_librdf_query_results swig_types[10] #define SWIGTYPE_p_librdf_serializer_s swig_types[11] #define SWIGTYPE_p_librdf_statement_s swig_types[12] #define SWIGTYPE_p_librdf_storage_s swig_types[13] #define SWIGTYPE_p_librdf_stream_s swig_types[14] #define SWIGTYPE_p_librdf_uri_s swig_types[15] #define SWIGTYPE_p_librdf_world_s swig_types[16] #define SWIGTYPE_p_p_char swig_types[17] #define SWIGTYPE_p_raptor_locator swig_types[18] static swig_type_info *swig_types[20]; static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #define SWIGVERSION 0x030012 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) (void *)((const void *)(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_PRE_I #include #endif #include /* * Thanks to the patch in this Debian bug for the solution * to the crash inside vsnprintf on some architectures. * * "reuse of args inside the while(1) loop is in violation of the * specs and only happens to work by accident on other systems." * * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325 */ #ifndef va_copy #ifdef __va_copy #define va_copy(dest,src) __va_copy(dest,src) #else #define va_copy(dest,src) (dest) = (src) #endif #endif /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_POST_I #include #endif /* Internal prototypes */ /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world); void librdf_internal_test_warning(librdf_world *world); /* prototypes for internal routines called below - NOT PART OF API */ void librdf_test_error(librdf_world* world, const char* message); void librdf_test_warning(librdf_world* world, const char* message); /* FOR TESTING ERRORS ONLY - NOT PART OF API */ void librdf_internal_test_error(librdf_world *world) { librdf_test_error(world, "test error message number 1."); } void librdf_internal_test_warning(librdf_world *world) { librdf_test_warning(world, "test warning message number 2."); } SWIGINTERN char * SWIG_strdup(const char *str) { char *newstr = (char *)(malloc(strlen(str) + 1)); return strcpy(newstr, str); } SWIGINTERN int SWIG_AsCharPtrAndSize(SEXP obj, char** cptr, size_t* psize, int *alloc) { if (cptr && Rf_isString(obj)) { char *cstr = (char *)(CHAR(STRING_ELT(obj, 0))); int len = strlen(cstr); if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); *alloc = SWIG_NEWOBJ; } else { *cptr = cstr; } } else { *cptr = (char *)(malloc(len + 1)); *cptr = strcpy(*cptr, cstr); } if (psize) *psize = len + 1; return SWIG_OK; } return SWIG_TypeError; } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif SWIGINTERNINLINE int SWIG_AsVal_long (SEXP obj, long *val) { if (val) *val = Rf_asInteger(obj); return SWIG_OK; } SWIGINTERN int SWIG_AsVal_int (SEXP obj, int *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = (int)(v); } } return res; } SWIGINTERN SEXP SWIG_FromCharPtrAndSize(const char* carray, size_t size) { SEXP t, c; if (!carray) return R_NilValue; /* See R internals document 1.10. MkCharLen was introduced in 2.7.0. Use that instead of hand creating vector. Starting in 2.8.0 creating strings via vectors was deprecated in order to allow for use of CHARSXP caches. */ Rf_protect(t = Rf_allocVector(STRSXP, 1)); #if R_VERSION >= R_Version(2,7,0) c = Rf_mkCharLen(carray, size); #else c = Rf_allocVector(CHARSXP, size); strncpy((char *)CHAR(c), carray, size); #endif SET_STRING_ELT(t, 0, c); Rf_unprotect(1); return t; } SWIGINTERNINLINE SEXP SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERNINLINE SEXP SWIG_From_unsigned_SS_long (unsigned long value) { return Rf_ScalarInteger((int)value); } SWIGINTERNINLINE SEXP SWIG_From_unsigned_SS_int (unsigned int value) { return SWIG_From_unsigned_SS_long (value); } #ifdef __cplusplus extern "C" { #endif SWIGEXPORT SEXP R_swig_librdf_new_digest ( SEXP world, SEXP name) { librdf_digest *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_digest" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); arg2 = (char *)(SWIG_strdup(CHAR(STRING_ELT(name, 0)))); result = (librdf_digest *)librdf_new_digest(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_digest_s, R_SWIG_OWNER | 0 ); free(arg2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_digest ( SEXP digest) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(digest, &argp1, SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_digest" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); librdf_free_digest(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_digest_init ( SEXP digest) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(digest, &argp1, SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_init" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); librdf_digest_init(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_digest_update ( SEXP digest, SEXP buf, SEXP length) { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(digest, &argp1, SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(buf, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_int(length, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_digest_update" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); librdf_digest_update(arg1,(char const *)arg2,arg3); r_ans = R_NilValue; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_digest_update_string ( SEXP digest, SEXP string) { librdf_digest *arg1 = (librdf_digest *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(digest, &argp1, SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update_string" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); librdf_digest_update_string(arg1,(char const *)arg2); r_ans = R_NilValue; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_digest_final ( SEXP digest) { librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(digest, &argp1, SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_final" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); librdf_digest_final(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_digest_to_string ( SEXP digest) { char *result = 0 ; librdf_digest *arg1 = (librdf_digest *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(digest, &argp1, SWIGTYPE_p_librdf_digest_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_to_string" "', argument " "1"" of type '" "librdf_digest *""'"); } arg1 = (librdf_digest *)(argp1); result = (char *)librdf_digest_to_string(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_hash ( SEXP world, SEXP name) { librdf_hash *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_hash_from_string ( SEXP world, SEXP name, SEXP string) { librdf_hash *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(string, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_hash_from_array_of_strings ( SEXP world, SEXP name, SEXP string) { librdf_hash *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(string, &argp3, SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "3"" of type '" "char const **""'"); } arg3 = (char **)(argp3); result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_hash_to_string ( SEXP hash, SEXP filter) { char *result = 0 ; librdf_hash *arg1 = (librdf_hash *) 0 ; char **arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(hash, &argp1, SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_hash_to_string" "', argument " "1"" of type '" "librdf_hash *""'"); } arg1 = (librdf_hash *)(argp1); arg2 = (char **)(SWIG_strdup(CHAR(STRING_ELT(filter, 0)))); result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; free(arg2); free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_hash ( SEXP hash) { librdf_hash *arg1 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(hash, &argp1, SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_hash" "', argument " "1"" of type '" "librdf_hash *""'"); } arg1 = (librdf_hash *)(argp1); librdf_free_hash(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_world ( ) { librdf_world *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (librdf_world *)librdf_new_world(); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_world_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_world ( SEXP world) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_world" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_free_world(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_world_open ( SEXP world) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_open" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_world_open(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_world_get_feature ( SEXP world, SEXP feature) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_get_feature" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_world_get_feature(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_world_set_feature ( SEXP world, SEXP feature, SEXP value, SEXP s_swig_copy) { int result; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_feature" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(value, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_world_set_feature(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_get_accept_header ( SEXP parser) { char *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_accept_header" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); result = (char *)librdf_parser_get_accept_header(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_world_set_logger ( SEXP world, SEXP user_data, SEXP log_handler) { librdf_world *arg1 = (librdf_world *) 0 ; void *arg2 = (void *) 0 ; librdf_log_func arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; void *argp3 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_logger" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(user_data, SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_logger" "', argument " "2"" of type '" "void *""'"); } { res3 = SWIG_R_ConvertPtr(log_handler, &argp3, SWIGTYPE_p_librdf_log_func, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'"); } else { arg3 = *((librdf_log_func *)(argp3)); } } librdf_world_set_logger(arg1,arg2,arg3); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_iterator ( SEXP s_arg1) { librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(s_arg1, &argp1, SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_iterator" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); librdf_free_iterator(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_iterator_end ( SEXP iterator, SEXP s_swig_copy) { int result; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(iterator, &argp1, SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_end" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (int)librdf_iterator_end(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_iterator_get_object ( SEXP iterator) { librdf_node *result = 0 ; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(iterator, &argp1, SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_object" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (librdf_node *)librdf_iterator_get_object(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_iterator_get_context ( SEXP iterator) { librdf_node *result = 0 ; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(iterator, &argp1, SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_context" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (librdf_node *)librdf_iterator_get_context(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_iterator_next ( SEXP iterator, SEXP s_swig_copy) { int result; librdf_iterator *arg1 = (librdf_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(iterator, &argp1, SWIGTYPE_p_librdf_iterator_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_next" "', argument " "1"" of type '" "librdf_iterator *""'"); } arg1 = (librdf_iterator *)(argp1); result = (int)librdf_iterator_next(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_uri ( SEXP world, SEXP string) { librdf_uri *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); arg2 = (char *)(SWIG_strdup(CHAR(STRING_ELT(string, 0)))); result = (librdf_uri *)librdf_new_uri(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, R_SWIG_OWNER | 0 ); free(arg2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_uri_from_uri ( SEXP uri) { librdf_uri *result = 0 ; librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(uri, &argp1, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_uri" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); result = (librdf_uri *)librdf_new_uri_from_uri(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_uri_from_filename ( SEXP world, SEXP filename) { librdf_uri *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_filename" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(filename, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri_from_filename" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, R_SWIG_EXTERNAL | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_uri ( SEXP uri) { librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(uri, &argp1, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_uri" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); librdf_free_uri(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_uri_to_string ( SEXP uri) { char *result = 0 ; librdf_uri *arg1 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(uri, &argp1, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_to_string" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); result = (char *)librdf_uri_to_string(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_uri_equals ( SEXP first_uri, SEXP second_uri, SEXP s_swig_copy) { int result; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(first_uri, &argp1, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_equals" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_R_ConvertPtr(second_uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_equals" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (int)librdf_uri_equals(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_uri_compare ( SEXP first_uri, SEXP second_uri, SEXP s_swig_copy) { int result; librdf_uri *arg1 = (librdf_uri *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(first_uri, &argp1, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_compare" "', argument " "1"" of type '" "librdf_uri *""'"); } arg1 = (librdf_uri *)(argp1); res2 = SWIG_R_ConvertPtr(second_uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_compare" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (int)librdf_uri_compare(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node ( SEXP world) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); result = (librdf_node *)librdf_new_node(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_uri_string ( SEXP world, SEXP string) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_uri ( SEXP world, SEXP uri) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_uri_local_name ( SEXP world, SEXP uri, SEXP local_name) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(local_name, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_normalised_uri_string ( SEXP world, SEXP uri_string, SEXP source_uri, SEXP base_uri) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(uri_string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(source_uri, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_R_ConvertPtr(base_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_literal ( SEXP world, SEXP string, SEXP inStrOrNull, SEXP is_wf_xml) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; int arg4 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_literal" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_literal" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(inStrOrNull, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_literal" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); arg4 = (int)(INTEGER(is_wf_xml)[0]); result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_typed_literal ( SEXP world, SEXP string, SEXP inStrOrNull, SEXP inUriOrNull) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) NULL ; librdf_uri *arg4 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_typed_literal" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_typed_literal" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(inStrOrNull, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_typed_literal" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_R_ConvertPtr(inUriOrNull, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_typed_literal" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_node ( SEXP node) { librdf_node *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_node" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (librdf_node *)librdf_new_node_from_node(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_node_from_blank_identifier ( SEXP world, SEXP inStrOrNull) { librdf_node *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) NULL ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(inStrOrNull, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_node ( SEXP r) { librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(r, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_node" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); librdf_free_node(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_uri ( SEXP node) { librdf_uri *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_uri" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (librdf_uri *)librdf_node_get_uri(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_type ( SEXP node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_type" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_type(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_literal_value ( SEXP node) { char *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_literal_value_as_latin1 ( SEXP node) { char *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_as_latin1" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value_as_latin1(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_literal_value_language ( SEXP node) { char *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_language" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_literal_value_language(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_literal_value_datatype_uri ( SEXP node) { librdf_uri *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_datatype_uri" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_literal_value_is_wf_xml ( SEXP node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_is_wf_xml" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_li_ordinal ( SEXP node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_li_ordinal" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_get_li_ordinal(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_get_blank_identifier ( SEXP node) { char *result = 0 ; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_blank_identifier" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (char *)librdf_node_get_blank_identifier(arg1); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_is_resource ( SEXP node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_resource" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_resource(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_is_literal ( SEXP node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_literal" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_literal(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_is_blank ( SEXP node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_blank" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); result = (int)librdf_node_is_blank(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_node_equals ( SEXP first_node, SEXP second_node, SEXP s_swig_copy) { int result; librdf_node *arg1 = (librdf_node *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(first_node, &argp1, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_equals" "', argument " "1"" of type '" "librdf_node *""'"); } arg1 = (librdf_node *)(argp1); res2 = SWIG_R_ConvertPtr(second_node, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_node_equals" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (int)librdf_node_equals(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_statement ( SEXP world) { librdf_statement *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); result = (librdf_statement *)librdf_new_statement(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_statement_from_statement ( SEXP statement) { librdf_statement *result = 0 ; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_statement" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_statement *)librdf_new_statement_from_statement(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_statement_from_nodes ( SEXP world, SEXP subject, SEXP predicate, SEXP object) { librdf_statement *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_nodes" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(subject, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_statement_from_nodes" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(predicate, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_statement_from_nodes" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_R_ConvertPtr(object, &argp4, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_statement_from_nodes" "', argument " "4"" of type '" "librdf_node *""'"); } arg4 = (librdf_node *)(argp4); result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_statement ( SEXP statement) { librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_statement" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); librdf_free_statement(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_get_subject ( SEXP statement) { librdf_node *result = 0 ; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_subject" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_subject(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_set_subject ( SEXP statement, SEXP subject) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_subject" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_R_ConvertPtr(subject, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_subject" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); librdf_statement_set_subject(arg1,arg2); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_get_predicate ( SEXP statement) { librdf_node *result = 0 ; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_predicate" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_predicate(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_set_predicate ( SEXP statement, SEXP predicate) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_predicate" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_R_ConvertPtr(predicate, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_predicate" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); librdf_statement_set_predicate(arg1,arg2); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_get_object ( SEXP statement) { librdf_node *result = 0 ; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_object" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (librdf_node *)librdf_statement_get_object(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_set_object ( SEXP statement, SEXP object) { librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_object" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_R_ConvertPtr(object, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_object" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); librdf_statement_set_object(arg1,arg2); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_equals ( SEXP statement1, SEXP statement2, SEXP s_swig_copy) { int result; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement1, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_equals" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_R_ConvertPtr(statement2, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_equals" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_statement_equals(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_match ( SEXP statement, SEXP partial_statement, SEXP s_swig_copy) { int result; librdf_statement *arg1 = (librdf_statement *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_match" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); res2 = SWIG_R_ConvertPtr(partial_statement, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_match" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_statement_match(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_statement_is_complete ( SEXP statement, SEXP s_swig_copy) { int result; librdf_statement *arg1 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(statement, &argp1, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_is_complete" "', argument " "1"" of type '" "librdf_statement *""'"); } arg1 = (librdf_statement *)(argp1); result = (int)librdf_statement_is_complete(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_model ( SEXP world, SEXP storage, SEXP options_string) { librdf_model *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(storage, &argp2, SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model" "', argument " "2"" of type '" "librdf_storage *""'"); } arg2 = (librdf_storage *)(argp2); arg3 = (char *)(SWIG_strdup(CHAR(STRING_ELT(options_string, 0)))); result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, R_SWIG_OWNER | 0 ); free(arg3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_model_with_options ( SEXP world, SEXP storage, SEXP options) { librdf_model *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; librdf_storage *arg2 = (librdf_storage *) 0 ; librdf_hash *arg3 = (librdf_hash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_with_options" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_R_ConvertPtr(storage, &argp2, SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model_with_options" "', argument " "2"" of type '" "librdf_storage *""'"); } arg2 = (librdf_storage *)(argp2); res3 = SWIG_R_ConvertPtr(options, &argp3, SWIGTYPE_p_librdf_hash_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model_with_options" "', argument " "3"" of type '" "librdf_hash *""'"); } arg3 = (librdf_hash *)(argp3); result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_model_from_model ( SEXP model) { librdf_model *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_from_model" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (librdf_model *)librdf_new_model_from_model(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_model ( SEXP model) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_model" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); librdf_free_model(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_size ( SEXP model, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_size" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_size(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_add ( SEXP model, SEXP subject, SEXP predicate, SEXP object, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; librdf_node *arg4 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(subject, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(predicate, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_R_ConvertPtr(object, &argp4, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add" "', argument " "4"" of type '" "librdf_node *""'"); } arg4 = (librdf_node *)(argp4); result = (int)librdf_model_add(arg1,arg2,arg3,arg4); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_add_string_literal_statement ( SEXP model, SEXP subject, SEXP predicate, SEXP literal, SEXP inStrOrNull, SEXP is_wf_xml, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) NULL ; int arg6 = (int) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_string_literal_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(subject, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_string_literal_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(predicate, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_string_literal_statement" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); res4 = SWIG_AsCharPtrAndSize(literal, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_string_literal_statement" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(inStrOrNull, &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_string_literal_statement" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); arg6 = (int)(INTEGER(is_wf_xml)[0]); result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); r_ans = Rf_ScalarInteger(result); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_add_typed_literal_statement ( SEXP model, SEXP subject, SEXP predicate, SEXP string, SEXP inStrOrNull, SEXP inUriOrNull, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; librdf_uri *arg6 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(subject, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(predicate, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); arg4 = (char *)(SWIG_strdup(CHAR(STRING_ELT(string, 0)))); arg5 = (char *)(SWIG_strdup(CHAR(STRING_ELT(inStrOrNull, 0)))); res6 = SWIG_R_ConvertPtr(inUriOrNull, &argp6, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "6"" of type '" "librdf_uri *""'"); } arg6 = (librdf_uri *)(argp6); result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); r_ans = Rf_ScalarInteger(result); free(arg4); free(arg5); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_add_statement ( SEXP model, SEXP statement, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(statement, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_add_statement(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_add_statements ( SEXP model, SEXP statement_stream, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_stream *arg2 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(statement_stream, &argp2, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statements" "', argument " "2"" of type '" "librdf_stream *""'"); } arg2 = (librdf_stream *)(argp2); result = (int)librdf_model_add_statements(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_remove_statement ( SEXP model, SEXP statement, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_remove_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(statement, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_remove_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_remove_statement(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_contains_statement ( SEXP model, SEXP statement, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(statement, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_statement" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (int)librdf_model_contains_statement(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_as_stream ( SEXP model) { librdf_stream *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_as_stream" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (librdf_stream *)librdf_model_as_stream(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_find_statements ( SEXP model, SEXP statement) { librdf_stream *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(statement, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_find_statements_in_context ( SEXP model, SEXP statement, SEXP inNodeOrNull) { librdf_stream *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_statement *arg2 = (librdf_statement *) 0 ; librdf_node *arg3 = (librdf_node *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements_in_context" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(statement, &argp2, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements_in_context" "', argument " "2"" of type '" "librdf_statement *""'"); } arg2 = (librdf_statement *)(argp2); res3 = SWIG_R_ConvertPtr(inNodeOrNull, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_find_statements_in_context" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_sources ( SEXP model, SEXP arc, SEXP target) { librdf_iterator *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_sources" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(arc, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_sources" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(target, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_sources" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_arcs ( SEXP model, SEXP source, SEXP target) { librdf_iterator *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(source, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(target, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arcs" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_targets ( SEXP model, SEXP source, SEXP arc) { librdf_iterator *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_targets" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(source, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_targets" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(arc, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_targets" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_source ( SEXP model, SEXP arc, SEXP target) { librdf_node *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_source" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(arc, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_source" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(target, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_source" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_arc ( SEXP model, SEXP source, SEXP target) { librdf_node *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arc" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(source, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arc" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(target, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arc" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_arcs_out ( SEXP model, SEXP node) { librdf_iterator *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_out" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(node, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_out" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_arcs_in ( SEXP model, SEXP node) { librdf_iterator *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_in" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(node, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_in" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_has_arc_in ( SEXP model, SEXP node, SEXP property, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_in" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(node, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_in" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(property, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_in" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_has_arc_out ( SEXP model, SEXP node, SEXP property, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_out" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(node, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_out" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(property, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_out" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_target ( SEXP model, SEXP source, SEXP arc) { librdf_node *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_target" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(source, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_target" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(arc, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_target" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_context_add_statement ( SEXP model, SEXP context, SEXP statement, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(context, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(statement, &argp3, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statement" "', argument " "3"" of type '" "librdf_statement *""'"); } arg3 = (librdf_statement *)(argp3); result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_context_add_statements ( SEXP model, SEXP context, SEXP stream, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(context, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statements" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(stream, &argp3, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statements" "', argument " "3"" of type '" "librdf_stream *""'"); } arg3 = (librdf_stream *)(argp3); result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_context_remove_statement ( SEXP model, SEXP context, SEXP statement, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; librdf_statement *arg3 = (librdf_statement *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statement" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(context, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statement" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); res3 = SWIG_R_ConvertPtr(statement, &argp3, SWIGTYPE_p_librdf_statement_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_remove_statement" "', argument " "3"" of type '" "librdf_statement *""'"); } arg3 = (librdf_statement *)(argp3); result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_context_remove_statements ( SEXP model, SEXP context, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statements" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(context, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statements" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (int)librdf_model_context_remove_statements(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_context_as_stream ( SEXP model, SEXP context) { librdf_stream *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_as_stream" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(context, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_as_stream" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_sync ( SEXP model) { librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_sync" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); librdf_model_sync(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_contexts ( SEXP model) { librdf_iterator *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_contexts" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (librdf_iterator *)librdf_model_get_contexts(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_contains_context ( SEXP model, SEXP context, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_node *arg2 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_context" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(context, &argp2, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_context" "', argument " "2"" of type '" "librdf_node *""'"); } arg2 = (librdf_node *)(argp2); result = (int)librdf_model_contains_context(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_get_feature ( SEXP model, SEXP feature) { librdf_node *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_feature" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_model_get_feature(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_set_feature ( SEXP model, SEXP feature, SEXP value, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_set_feature" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(value, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_model_set_feature(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_load ( SEXP model, SEXP uri, SEXP name, SEXP mime_type, SEXP type_uri, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_load" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_load" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(name, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_load" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(mime_type, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_load" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_R_ConvertPtr(type_uri, &argp5, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_load" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); r_ans = Rf_ScalarInteger(result); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_query_execute ( SEXP model, SEXP query) { librdf_query_results *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_query *arg2 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_query_execute" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(query, &argp2, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_query_execute" "', argument " "2"" of type '" "librdf_query *""'"); } arg2 = (librdf_query *)(argp2); result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_to_string ( SEXP model, SEXP uri, SEXP name, SEXP mime_type, SEXP inUriOrNull) { char *result = 0 ; librdf_model *arg1 = (librdf_model *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) NULL ; char *arg4 = (char *) NULL ; librdf_uri *arg5 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_to_string" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); res2 = SWIG_R_ConvertPtr(uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(name, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_to_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(mime_type, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_to_string" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_R_ConvertPtr(inUriOrNull, &argp5, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_to_string" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_transaction_start ( SEXP model, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_start" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_start(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_transaction_commit ( SEXP model, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_commit" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_commit(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_model_transaction_rollback ( SEXP model, SEXP s_swig_copy) { int result; librdf_model *arg1 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(model, &argp1, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_rollback" "', argument " "1"" of type '" "librdf_model *""'"); } arg1 = (librdf_model *)(argp1); result = (int)librdf_model_transaction_rollback(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_storage ( SEXP world, SEXP storage_name, SEXP name, SEXP options_string) { librdf_storage *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); arg2 = (char *)(SWIG_strdup(CHAR(STRING_ELT(storage_name, 0)))); arg3 = (char *)(SWIG_strdup(CHAR(STRING_ELT(name, 0)))); arg4 = (char *)(SWIG_strdup(CHAR(STRING_ELT(options_string, 0)))); result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, R_SWIG_OWNER | 0 ); free(arg2); free(arg3); free(arg4); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_storage_from_storage ( SEXP old_storage) { librdf_storage *result = 0 ; librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(old_storage, &argp1, SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage_from_storage" "', argument " "1"" of type '" "librdf_storage *""'"); } arg1 = (librdf_storage *)(argp1); result = (librdf_storage *)librdf_new_storage_from_storage(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_storage ( SEXP storage) { librdf_storage *arg1 = (librdf_storage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(storage, &argp1, SWIGTYPE_p_librdf_storage_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_storage" "', argument " "1"" of type '" "librdf_storage *""'"); } arg1 = (librdf_storage *)(argp1); librdf_free_storage(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_check_name ( SEXP world, SEXP name, SEXP s_swig_copy) { int result; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_check_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_check_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)librdf_parser_check_name(arg1,(char const *)arg2); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_parser ( SEXP world, SEXP name, SEXP mime_type, SEXP type_uri) { librdf_parser *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_parser" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_parser" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(mime_type, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_parser" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_R_ConvertPtr(type_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_parser" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_parser_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_parser ( SEXP parser) { librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_parser" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); librdf_free_parser(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_parse_as_stream ( SEXP parser, SEXP uri, SEXP inUriorNull) { librdf_stream *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_R_ConvertPtr(uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_as_stream" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(inUriorNull, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_as_stream" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_parse_into_model ( SEXP parser, SEXP uri, SEXP inUriOrNull, SEXP model, SEXP s_swig_copy) { int result; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_R_ConvertPtr(uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_into_model" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(inUriOrNull, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_into_model" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_R_ConvertPtr(model, &argp4, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_into_model" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_parse_string_as_stream ( SEXP parser, SEXP string, SEXP base_uri) { librdf_stream *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(base_uri, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_parse_string_into_model ( SEXP parser, SEXP string, SEXP base_uri, SEXP model, SEXP s_swig_copy) { int result; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_into_model" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(base_uri, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_into_model" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_R_ConvertPtr(model, &argp4, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_string_into_model" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_parse_counted_string_as_stream ( SEXP parser, SEXP string, SEXP length, SEXP base_uri) { librdf_stream *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_int(length, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); res4 = SWIG_R_ConvertPtr(base_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_EXTERNAL | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_parse_counted_string_into_model ( SEXP parser, SEXP string, SEXP length, SEXP base_uri, SEXP model, SEXP s_swig_copy) { int result; librdf_parser *arg1 = (librdf_parser *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_model *arg5 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_AsCharPtrAndSize(string, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_int(length, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); res4 = SWIG_R_ConvertPtr(base_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_R_ConvertPtr(model, &argp5, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "5"" of type '" "librdf_model *""'"); } arg5 = (librdf_model *)(argp5); result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_get_feature ( SEXP parser, SEXP feature) { librdf_node *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_feature" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_set_feature ( SEXP parser, SEXP feature, SEXP value, SEXP s_swig_copy) { int result; librdf_parser *arg1 = (librdf_parser *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_set_feature" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(value, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_parser_set_feature(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_guess_name2 ( SEXP world, SEXP mime_type, SEXP buffer, SEXP identifier) { char *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name2" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(mime_type, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(buffer, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(identifier, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_guess_name2" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); r_ans = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_get_namespaces_seen_prefix ( SEXP parser, SEXP offset) { char *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); arg2 = (int)(INTEGER(offset)[0]); result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); r_ans = SWIG_FromCharPtr((const char *)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_get_namespaces_seen_uri ( SEXP parser, SEXP offset) { librdf_uri *result = 0 ; librdf_parser *arg1 = (librdf_parser *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); arg2 = (int)(INTEGER(offset)[0]); result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_parser_get_namespaces_seen_count ( SEXP parser, SEXP s_swig_copy) { int result; librdf_parser *arg1 = (librdf_parser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(parser, &argp1, SWIGTYPE_p_librdf_parser_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_count" "', argument " "1"" of type '" "librdf_parser *""'"); } arg1 = (librdf_parser *)(argp1); result = (int)librdf_parser_get_namespaces_seen_count(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_query ( SEXP world, SEXP name, SEXP uri, SEXP query_string, SEXP base_uri) { librdf_query *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; char *arg4 = (char *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(uri, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_query" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_AsCharPtrAndSize(query_string, &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_query" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_R_ConvertPtr(base_uri, &argp5, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_new_query" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_query_from_query ( SEXP old_query) { librdf_query *result = 0 ; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(old_query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query_from_query" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); result = (librdf_query *)librdf_new_query_from_query(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_query ( SEXP query) { librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); librdf_free_query(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_execute ( SEXP query, SEXP model) { librdf_query_results *result = 0 ; librdf_query *arg1 = (librdf_query *) 0 ; librdf_model *arg2 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_execute" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); res2 = SWIG_R_ConvertPtr(model, &argp2, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_execute" "', argument " "2"" of type '" "librdf_model *""'"); } arg2 = (librdf_model *)(argp2); result = (librdf_query_results *)librdf_query_execute(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_get_limit ( SEXP query, SEXP s_swig_copy) { int result; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_limit" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); result = (int)librdf_query_get_limit(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_set_limit ( SEXP query, SEXP limit, SEXP s_swig_copy) { int result; librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_limit" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); arg2 = (int)(INTEGER(limit)[0]); result = (int)librdf_query_set_limit(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_get_offset ( SEXP query, SEXP s_swig_copy) { int result; librdf_query *arg1 = (librdf_query *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_offset" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); result = (int)librdf_query_get_offset(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_set_offset ( SEXP query, SEXP offset, SEXP s_swig_copy) { int result; librdf_query *arg1 = (librdf_query *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query, &argp1, SWIGTYPE_p_librdf_query, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_offset" "', argument " "1"" of type '" "librdf_query *""'"); } arg1 = (librdf_query *)(argp1); arg2 = (int)(INTEGER(offset)[0]); result = (int)librdf_query_set_offset(arg1,arg2); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_as_stream ( SEXP query_results) { librdf_stream *result = 0 ; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_as_stream" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (librdf_stream *)librdf_query_results_as_stream(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_get_count ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_count" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_count(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_next ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_next" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_next(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_finished ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_finished" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_finished(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_get_binding_value ( SEXP query_results, SEXP offset) { librdf_node *result = 0 ; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); arg2 = (int)(INTEGER(offset)[0]); result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_get_binding_name ( SEXP query_results, SEXP offset) { char *result = 0 ; librdf_query_results *arg1 = (librdf_query_results *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_name" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); arg2 = (int)(INTEGER(offset)[0]); result = (char *)librdf_query_results_get_binding_name(arg1,arg2); r_ans = SWIG_FromCharPtr((const char *)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_get_binding_value_by_name ( SEXP query_results, SEXP name) { librdf_node *result = 0 ; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_get_bindings_count ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_bindings_count" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_bindings_count(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_to_file2 ( SEXP query_results, SEXP name, SEXP mime_type, SEXP format_uri, SEXP base_uri, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file2" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(mime_type, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_R_ConvertPtr(format_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file2" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_R_ConvertPtr(base_uri, &argp5, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_file2" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_to_string2 ( SEXP query_results, SEXP name, SEXP mime_type, SEXP format_uri, SEXP base_uri) { char *result = 0 ; librdf_query_results *arg1 = (librdf_query_results *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; librdf_uri *arg5 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string2" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string2" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(mime_type, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string2" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_R_ConvertPtr(format_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_string2" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); res5 = SWIG_R_ConvertPtr(base_uri, &argp5, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_string2" "', argument " "5"" of type '" "librdf_uri *""'"); } arg5 = (librdf_uri *)(argp5); result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_query_results ( SEXP query_results) { librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query_results" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); librdf_free_query_results(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_is_bindings ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_bindings" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_bindings(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_is_boolean ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_boolean" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_boolean(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_is_graph ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_graph" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_graph(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_is_syntax ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_syntax" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_is_syntax(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_query_results_get_boolean ( SEXP query_results, SEXP s_swig_copy) { int result; librdf_query_results *arg1 = (librdf_query_results *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(query_results, &argp1, SWIGTYPE_p_librdf_query_results, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_boolean" "', argument " "1"" of type '" "librdf_query_results *""'"); } arg1 = (librdf_query_results *)(argp1); result = (int)librdf_query_results_get_boolean(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_check_name ( SEXP world, SEXP name, SEXP s_swig_copy) { int result; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_check_name" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_check_name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_new_serializer ( SEXP world, SEXP name, SEXP mime_type, SEXP type_uri) { librdf_serializer *result = 0 ; librdf_world *arg1 = (librdf_world *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; librdf_uri *arg4 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_serializer" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_serializer" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(mime_type, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_serializer" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_R_ConvertPtr(type_uri, &argp4, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_serializer" "', argument " "4"" of type '" "librdf_uri *""'"); } arg4 = (librdf_uri *)(argp4); result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_serializer_s, R_SWIG_OWNER | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_serializer ( SEXP serializer) { librdf_serializer *arg1 = (librdf_serializer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_serializer" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); librdf_free_serializer(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_serialize_stream_to_file ( SEXP serializer, SEXP name, SEXP base_uri, SEXP stream, SEXP s_swig_copy) { int result; librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_stream *arg4 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(base_uri, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_R_ConvertPtr(stream, &argp4, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "4"" of type '" "librdf_stream *""'"); } arg4 = (librdf_stream *)(argp4); result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_serialize_model_to_file ( SEXP serializer, SEXP name, SEXP inUriOrNull, SEXP model, SEXP s_swig_copy) { int result; librdf_serializer *arg1 = (librdf_serializer *) 0 ; char *arg2 = (char *) 0 ; librdf_uri *arg3 = (librdf_uri *) 0 ; librdf_model *arg4 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_AsCharPtrAndSize(name, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_R_ConvertPtr(inUriOrNull, &argp3, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "3"" of type '" "librdf_uri *""'"); } arg3 = (librdf_uri *)(argp3); res4 = SWIG_R_ConvertPtr(model, &argp4, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "4"" of type '" "librdf_model *""'"); } arg4 = (librdf_model *)(argp4); result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); r_ans = Rf_ScalarInteger(result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_serialize_stream_to_string ( SEXP serializer, SEXP base_uri, SEXP stream) { char *result = 0 ; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_stream *arg3 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_R_ConvertPtr(base_uri, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(stream, &argp3, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "3"" of type '" "librdf_stream *""'"); } arg3 = (librdf_stream *)(argp3); result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_serialize_model_to_string ( SEXP serializer, SEXP inUriOrNull, SEXP model) { char *result = 0 ; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_model *arg3 = (librdf_model *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_R_ConvertPtr(inUriOrNull, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(model, &argp3, SWIGTYPE_p_librdf_model_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "3"" of type '" "librdf_model *""'"); } arg3 = (librdf_model *)(argp3); result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; free((char*)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_get_feature ( SEXP serializer, SEXP feature) { librdf_node *result = 0 ; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_get_feature" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_get_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_set_feature ( SEXP serializer, SEXP feature, SEXP value, SEXP s_swig_copy) { int result; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; librdf_node *arg3 = (librdf_node *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_feature" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_R_ConvertPtr(feature, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_feature" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_R_ConvertPtr(value, &argp3, SWIGTYPE_p_librdf_node_s, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_feature" "', argument " "3"" of type '" "librdf_node *""'"); } arg3 = (librdf_node *)(argp3); result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_serializer_set_namespace ( SEXP serializer, SEXP nspace, SEXP prefix, SEXP s_swig_copy) { int result; librdf_serializer *arg1 = (librdf_serializer *) 0 ; librdf_uri *arg2 = (librdf_uri *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(serializer, &argp1, SWIGTYPE_p_librdf_serializer_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_namespace" "', argument " "1"" of type '" "librdf_serializer *""'"); } arg1 = (librdf_serializer *)(argp1); res2 = SWIG_R_ConvertPtr(nspace, &argp2, SWIGTYPE_p_librdf_uri_s, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_namespace" "', argument " "2"" of type '" "librdf_uri *""'"); } arg2 = (librdf_uri *)(argp2); res3 = SWIG_AsCharPtrAndSize(prefix, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_namespace" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); r_ans = Rf_ScalarInteger(result); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_free_stream ( SEXP stream) { librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(stream, &argp1, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_stream" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); librdf_free_stream(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_stream_end ( SEXP stream, SEXP s_swig_copy) { int result; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(stream, &argp1, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_end" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (int)librdf_stream_end(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_stream_next ( SEXP stream, SEXP s_swig_copy) { int result; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(stream, &argp1, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_next" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (int)librdf_stream_next(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_stream_get_object ( SEXP stream) { librdf_statement *result = 0 ; librdf_stream *arg1 = (librdf_stream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(stream, &argp1, SWIGTYPE_p_librdf_stream_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_object" "', argument " "1"" of type '" "librdf_stream *""'"); } arg1 = (librdf_stream *)(argp1); result = (librdf_statement *)librdf_stream_get_object(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_log_message_code ( SEXP message, SEXP s_swig_copy) { int result; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(message, &argp1, SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_code" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_code(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_log_message_level ( SEXP message, SEXP s_swig_copy) { int result; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(message, &argp1, SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_level" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_level(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_log_message_facility ( SEXP message, SEXP s_swig_copy) { int result; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(message, &argp1, SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_facility" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (int)librdf_log_message_facility(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_log_message_message ( SEXP message) { char *result = 0 ; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(message, &argp1, SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_message" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (char *)librdf_log_message_message(arg1); r_ans = SWIG_FromCharPtr((const char *)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_log_message_locator ( SEXP message) { raptor_locator *result = 0 ; librdf_log_message *arg1 = (librdf_log_message *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(message, &argp1, SWIGTYPE_p_librdf_log_message, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_locator" "', argument " "1"" of type '" "librdf_log_message *""'"); } arg1 = (librdf_log_message *)(argp1); result = (raptor_locator *)librdf_log_message_locator(arg1); r_ans = SWIG_R_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_raptor_locator, R_SWIG_EXTERNAL | 0 ); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_locator_line ( SEXP locator, SEXP s_swig_copy) { int result; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(locator, &argp1, SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_line" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_line(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_locator_column ( SEXP locator, SEXP s_swig_copy) { int result; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(locator, &argp1, SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_column" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_column(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_locator_byte ( SEXP locator, SEXP s_swig_copy) { int result; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(locator, &argp1, SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_byte" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (int)raptor_locator_byte(arg1); r_ans = Rf_ScalarInteger(result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_locator_file ( SEXP locator) { char *result = 0 ; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(locator, &argp1, SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_file" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (char *)raptor_locator_file(arg1); r_ans = SWIG_FromCharPtr((const char *)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_locator_uri ( SEXP locator) { char *result = 0 ; raptor_locator *arg1 = (raptor_locator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(locator, &argp1, SWIGTYPE_p_raptor_locator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_uri" "', argument " "1"" of type '" "raptor_locator *""'"); } arg1 = (raptor_locator *)(argp1); result = (char *)raptor_locator_uri(arg1); r_ans = SWIG_FromCharPtr((const char *)result); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_internal_test_error ( SEXP world) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_error" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_internal_test_error(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_internal_test_warning ( SEXP world) { librdf_world *arg1 = (librdf_world *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; res1 = SWIG_R_ConvertPtr(world, &argp1, SWIGTYPE_p_librdf_world_s, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_warning" "', argument " "1"" of type '" "librdf_world *""'"); } arg1 = (librdf_world *)(argp1); librdf_internal_test_warning(arg1); r_ans = R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_short_copyright_string_get ( SEXP s_swig_copy) { char *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char *)(char *)librdf_short_copyright_string; r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_copyright_string_get ( SEXP s_swig_copy) { char *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char *)(char *)librdf_copyright_string; r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_version_string_get ( SEXP s_swig_copy) { char *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char *)(char *)librdf_version_string; r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_version_major_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)librdf_version_major; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_version_minor_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)librdf_version_minor; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_version_release_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)librdf_version_release; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_librdf_version_decimal_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)librdf_version_decimal; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_version_string_get ( SEXP s_swig_copy) { char *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char *)(char *)raptor_version_string; r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_version_major_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)raptor_version_major; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_version_minor_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)raptor_version_minor; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_version_release_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)raptor_version_release; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_raptor_version_decimal_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)raptor_version_decimal; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_rasqal_version_string_get ( SEXP s_swig_copy) { char *result = 0 ; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char *)(char *)rasqal_version_string; r_ans = result ? Rf_mkString((char *)(result)) : R_NilValue; vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_rasqal_version_major_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)rasqal_version_major; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_rasqal_version_minor_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)rasqal_version_minor; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_rasqal_version_release_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)rasqal_version_release; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } SWIGEXPORT SEXP R_swig_rasqal_version_decimal_get ( SEXP s_swig_copy) { unsigned int result; unsigned int r_nprotect = 0; SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (unsigned int)(unsigned int)rasqal_version_decimal; r_ans = SWIG_From_unsigned_SS_int((unsigned int)(result)); vmaxset(r_vmax); if(r_nprotect) Rf_unprotect(r_nprotect); return r_ans; } #ifdef __cplusplus } #endif /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_char, &_swigt__p_librdf_digest_s, &_swigt__p_librdf_hash_s, &_swigt__p_librdf_iterator_s, &_swigt__p_librdf_log_func, &_swigt__p_librdf_log_message, &_swigt__p_librdf_model_s, &_swigt__p_librdf_node_s, &_swigt__p_librdf_parser_s, &_swigt__p_librdf_query, &_swigt__p_librdf_query_results, &_swigt__p_librdf_serializer_s, &_swigt__p_librdf_statement_s, &_swigt__p_librdf_storage_s, &_swigt__p_librdf_stream_s, &_swigt__p_librdf_uri_s, &_swigt__p_librdf_world_s, &_swigt__p_p_char, &_swigt__p_raptor_locator, }; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_char, _swigc__p_librdf_digest_s, _swigc__p_librdf_hash_s, _swigc__p_librdf_iterator_s, _swigc__p_librdf_log_func, _swigc__p_librdf_log_message, _swigc__p_librdf_model_s, _swigc__p_librdf_node_s, _swigc__p_librdf_parser_s, _swigc__p_librdf_query, _swigc__p_librdf_query_results, _swigc__p_librdf_serializer_s, _swigc__p_librdf_statement_s, _swigc__p_librdf_storage_s, _swigc__p_librdf_stream_s, _swigc__p_librdf_uri_s, _swigc__p_librdf_world_s, _swigc__p_p_char, _swigc__p_raptor_locator, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif SWIGEXPORT void SWIG_init(void) { /* compile-time include (inside a % ... % block) */ #ifdef REDLAND_INIT_I #include #endif } #include extern SEXP isnull(SEXP); SWIGINTERN R_CallMethodDef CallEntries[] = { {"isnull", (DL_FUNC) &isnull, 1}, {"R_swig_librdf_parser_set_feature", (DL_FUNC) &R_swig_librdf_parser_set_feature, 4}, {"R_swig_librdf_parser_get_feature", (DL_FUNC) &R_swig_librdf_parser_get_feature, 2}, {"R_swig_librdf_model_set_feature", (DL_FUNC) &R_swig_librdf_model_set_feature, 4}, {"R_swig_librdf_model_get_feature", (DL_FUNC) &R_swig_librdf_model_get_feature, 2}, {"R_swig_librdf_world_set_feature", (DL_FUNC) &R_swig_librdf_world_set_feature, 4}, {"R_swig_librdf_world_get_feature", (DL_FUNC) &R_swig_librdf_world_get_feature, 2}, {"R_swig_librdf_serializer_get_feature", (DL_FUNC) &R_swig_librdf_serializer_get_feature, 2}, {"R_swig_librdf_serializer_set_feature", (DL_FUNC) &R_swig_librdf_serializer_set_feature, 4}, {"R_swig_librdf_model_to_string", (DL_FUNC) &R_swig_librdf_model_to_string, 5}, {"R_swig_librdf_new_node_from_uri_string", (DL_FUNC) &R_swig_librdf_new_node_from_uri_string, 2}, {"R_swig_librdf_uri_to_string", (DL_FUNC) &R_swig_librdf_uri_to_string, 1}, {"R_swig_librdf_digest_update_string", (DL_FUNC) &R_swig_librdf_digest_update_string, 2}, {"R_swig_librdf_digest_to_string", (DL_FUNC) &R_swig_librdf_digest_to_string, 1}, {"R_swig_librdf_new_hash_from_string", (DL_FUNC) &R_swig_librdf_new_hash_from_string, 3}, {"R_swig_librdf_hash_to_string", (DL_FUNC) &R_swig_librdf_hash_to_string, 2}, {"R_swig_librdf_new_node_from_normalised_uri_string", (DL_FUNC) &R_swig_librdf_new_node_from_normalised_uri_string, 4}, {"R_swig_librdf_serializer_serialize_model_to_string", (DL_FUNC) &R_swig_librdf_serializer_serialize_model_to_string, 3}, {"R_swig_librdf_stream_end", (DL_FUNC) &R_swig_librdf_stream_end, 2}, {"R_swig_librdf_internal_test_error", (DL_FUNC) &R_swig_librdf_internal_test_error, 1}, {"R_swig_librdf_query_results_get_binding_name", (DL_FUNC) &R_swig_librdf_query_results_get_binding_name, 2}, {"R_swig_librdf_digest_init", (DL_FUNC) &R_swig_librdf_digest_init, 1}, {"R_swig_librdf_query_set_limit", (DL_FUNC) &R_swig_librdf_query_set_limit, 3}, {"R_swig_librdf_query_get_limit", (DL_FUNC) &R_swig_librdf_query_get_limit, 2}, {"R_swig_librdf_model_get_contexts", (DL_FUNC) &R_swig_librdf_model_get_contexts, 1}, {"R_swig_librdf_model_sync", (DL_FUNC) &R_swig_librdf_model_sync, 1}, {"R_swig_librdf_free_hash", (DL_FUNC) &R_swig_librdf_free_hash, 1}, {"R_swig_librdf_query_results_is_bindings", (DL_FUNC) &R_swig_librdf_query_results_is_bindings, 2}, {"R_swig_librdf_query_results_finished", (DL_FUNC) &R_swig_librdf_query_results_finished, 2}, {"R_swig_librdf_parser_get_accept_header", (DL_FUNC) &R_swig_librdf_parser_get_accept_header, 1}, {"R_swig_librdf_serializer_serialize_model_to_file", (DL_FUNC) &R_swig_librdf_serializer_serialize_model_to_file, 5}, {"R_swig_librdf_serializer_serialize_stream_to_file", (DL_FUNC) &R_swig_librdf_serializer_serialize_stream_to_file, 5}, {"R_swig_raptor_locator_uri", (DL_FUNC) &R_swig_raptor_locator_uri, 1}, {"R_swig_librdf_model_get_arcs_out", (DL_FUNC) &R_swig_librdf_model_get_arcs_out, 2}, {"R_swig_librdf_query_results_is_graph", (DL_FUNC) &R_swig_librdf_query_results_is_graph, 2}, {"R_swig_librdf_model_get_arc", (DL_FUNC) &R_swig_librdf_model_get_arc, 3}, {"R_swig_raptor_locator_byte", (DL_FUNC) &R_swig_raptor_locator_byte, 2}, {"R_swig_librdf_model_get_arcs_in", (DL_FUNC) &R_swig_librdf_model_get_arcs_in, 2}, {"R_swig_librdf_node_get_literal_value_as_latin1", (DL_FUNC) &R_swig_librdf_node_get_literal_value_as_latin1, 1}, {"R_swig_raptor_locator_file", (DL_FUNC) &R_swig_raptor_locator_file, 1}, {"R_swig_librdf_free_node", (DL_FUNC) &R_swig_librdf_free_node, 1}, {"R_swig_librdf_iterator_get_object", (DL_FUNC) &R_swig_librdf_iterator_get_object, 1}, {"R_swig_librdf_statement_get_object", (DL_FUNC) &R_swig_librdf_statement_get_object, 1}, {"R_swig_librdf_statement_set_object", (DL_FUNC) &R_swig_librdf_statement_set_object, 2}, {"R_swig_librdf_stream_get_object", (DL_FUNC) &R_swig_librdf_stream_get_object, 1}, {"R_swig_librdf_free_parser", (DL_FUNC) &R_swig_librdf_free_parser, 1}, {"R_swig_librdf_new_parser", (DL_FUNC) &R_swig_librdf_new_parser, 4}, {"R_swig_librdf_new_node_from_uri", (DL_FUNC) &R_swig_librdf_new_node_from_uri, 2}, {"R_swig_librdf_new_uri_from_uri", (DL_FUNC) &R_swig_librdf_new_uri_from_uri, 1}, {"R_swig_librdf_new_model_with_options", (DL_FUNC) &R_swig_librdf_new_model_with_options, 3}, {"R_swig_librdf_free_uri", (DL_FUNC) &R_swig_librdf_free_uri, 1}, {"R_swig_librdf_new_hash_from_array_of_strings", (DL_FUNC) &R_swig_librdf_new_hash_from_array_of_strings, 3}, {"R_swig_librdf_free_iterator", (DL_FUNC) &R_swig_librdf_free_iterator, 1}, {"R_swig_librdf_query_results_next", (DL_FUNC) &R_swig_librdf_query_results_next, 2}, {"R_swig_librdf_short_copyright_string_get", (DL_FUNC) &R_swig_librdf_short_copyright_string_get, 1}, {"R_swig_librdf_copyright_string_get", (DL_FUNC) &R_swig_librdf_copyright_string_get, 1}, {"R_swig_librdf_version_string_get", (DL_FUNC) &R_swig_librdf_version_string_get, 1}, {"R_swig_raptor_version_string_get", (DL_FUNC) &R_swig_raptor_version_string_get, 1}, {"R_swig_rasqal_version_string_get", (DL_FUNC) &R_swig_rasqal_version_string_get, 1}, {"R_swig_librdf_query_results_as_stream", (DL_FUNC) &R_swig_librdf_query_results_as_stream, 1}, {"R_swig_librdf_parser_parse_string_as_stream", (DL_FUNC) &R_swig_librdf_parser_parse_string_as_stream, 3}, {"R_swig_librdf_parser_parse_as_stream", (DL_FUNC) &R_swig_librdf_parser_parse_as_stream, 3}, {"R_swig_librdf_model_context_as_stream", (DL_FUNC) &R_swig_librdf_model_context_as_stream, 2}, {"R_swig_librdf_model_as_stream", (DL_FUNC) &R_swig_librdf_model_as_stream, 1}, {"R_swig_librdf_free_stream", (DL_FUNC) &R_swig_librdf_free_stream, 1}, {"R_swig_librdf_digest_update", (DL_FUNC) &R_swig_librdf_digest_update, 3}, {"R_swig_librdf_parser_parse_counted_string_into_model", (DL_FUNC) &R_swig_librdf_parser_parse_counted_string_into_model, 6}, {"R_swig_librdf_query_set_offset", (DL_FUNC) &R_swig_librdf_query_set_offset, 3}, {"R_swig_librdf_query_get_offset", (DL_FUNC) &R_swig_librdf_query_get_offset, 2}, {"R_swig_librdf_node_get_literal_value_is_wf_xml", (DL_FUNC) &R_swig_librdf_node_get_literal_value_is_wf_xml, 2}, {"R_swig_librdf_model_transaction_rollback", (DL_FUNC) &R_swig_librdf_model_transaction_rollback, 2}, {"R_swig_librdf_parser_guess_name2", (DL_FUNC) &R_swig_librdf_parser_guess_name2, 4}, {"R_swig_librdf_model_has_arc_in", (DL_FUNC) &R_swig_librdf_model_has_arc_in, 4}, {"R_swig_librdf_query_execute", (DL_FUNC) &R_swig_librdf_query_execute, 2}, {"R_swig_librdf_model_query_execute", (DL_FUNC) &R_swig_librdf_model_query_execute, 2}, {"R_swig_librdf_query_results_get_binding_value", (DL_FUNC) &R_swig_librdf_query_results_get_binding_value, 2}, {"R_swig_librdf_query_results_is_syntax", (DL_FUNC) &R_swig_librdf_query_results_is_syntax, 2}, {"R_swig_librdf_model_contains_context", (DL_FUNC) &R_swig_librdf_model_contains_context, 3}, {"R_swig_librdf_model_find_statements_in_context", (DL_FUNC) &R_swig_librdf_model_find_statements_in_context, 3}, {"R_swig_librdf_iterator_get_context", (DL_FUNC) &R_swig_librdf_iterator_get_context, 1}, {"R_swig_librdf_version_release_get", (DL_FUNC) &R_swig_librdf_version_release_get, 1}, {"R_swig_raptor_version_release_get", (DL_FUNC) &R_swig_raptor_version_release_get, 1}, {"R_swig_rasqal_version_release_get", (DL_FUNC) &R_swig_rasqal_version_release_get, 1}, {"R_swig_librdf_model_load", (DL_FUNC) &R_swig_librdf_model_load, 6}, {"R_swig_librdf_new_hash", (DL_FUNC) &R_swig_librdf_new_hash, 2}, {"R_swig_librdf_statement_is_complete", (DL_FUNC) &R_swig_librdf_statement_is_complete, 2}, {"R_swig_librdf_serializer_serialize_stream_to_string", (DL_FUNC) &R_swig_librdf_serializer_serialize_stream_to_string, 3}, {"R_swig_librdf_log_message_level", (DL_FUNC) &R_swig_librdf_log_message_level, 2}, {"R_swig_librdf_query_results_get_bindings_count", (DL_FUNC) &R_swig_librdf_query_results_get_bindings_count, 2}, {"R_swig_librdf_model_has_arc_out", (DL_FUNC) &R_swig_librdf_model_has_arc_out, 4}, {"R_swig_librdf_statement_get_predicate", (DL_FUNC) &R_swig_librdf_statement_get_predicate, 1}, {"R_swig_librdf_statement_set_predicate", (DL_FUNC) &R_swig_librdf_statement_set_predicate, 2}, {"R_swig_librdf_model_context_remove_statement", (DL_FUNC) &R_swig_librdf_model_context_remove_statement, 4}, {"R_swig_librdf_model_context_add_statement", (DL_FUNC) &R_swig_librdf_model_context_add_statement, 4}, {"R_swig_librdf_model_contains_statement", (DL_FUNC) &R_swig_librdf_model_contains_statement, 3}, {"R_swig_librdf_model_remove_statement", (DL_FUNC) &R_swig_librdf_model_remove_statement, 3}, {"R_swig_librdf_model_add_statement", (DL_FUNC) &R_swig_librdf_model_add_statement, 3}, {"R_swig_librdf_model_add_typed_literal_statement", (DL_FUNC) &R_swig_librdf_model_add_typed_literal_statement, 7}, {"R_swig_librdf_model_add_string_literal_statement", (DL_FUNC) &R_swig_librdf_model_add_string_literal_statement, 7}, {"R_swig_librdf_new_statement", (DL_FUNC) &R_swig_librdf_new_statement, 1}, {"R_swig_librdf_new_statement_from_statement", (DL_FUNC) &R_swig_librdf_new_statement_from_statement, 1}, {"R_swig_librdf_free_statement", (DL_FUNC) &R_swig_librdf_free_statement, 1}, {"R_swig_librdf_statement_match", (DL_FUNC) &R_swig_librdf_statement_match, 3}, {"R_swig_librdf_node_get_li_ordinal", (DL_FUNC) &R_swig_librdf_node_get_li_ordinal, 2}, {"R_swig_librdf_model_get_target", (DL_FUNC) &R_swig_librdf_model_get_target, 3}, {"R_swig_librdf_serializer_check_name", (DL_FUNC) &R_swig_librdf_serializer_check_name, 3}, {"R_swig_librdf_parser_check_name", (DL_FUNC) &R_swig_librdf_parser_check_name, 3}, {"R_swig_librdf_query_results_to_file2", (DL_FUNC) &R_swig_librdf_query_results_to_file2, 6}, {"R_swig_librdf_new_node_from_node", (DL_FUNC) &R_swig_librdf_new_node_from_node, 1}, {"R_swig_librdf_internal_test_warning", (DL_FUNC) &R_swig_librdf_internal_test_warning, 1}, {"R_swig_librdf_world_open", (DL_FUNC) &R_swig_librdf_world_open, 1}, {"R_swig_librdf_model_get_source", (DL_FUNC) &R_swig_librdf_model_get_source, 3}, {"R_swig_librdf_node_is_resource", (DL_FUNC) &R_swig_librdf_node_is_resource, 2}, {"R_swig_raptor_locator_column", (DL_FUNC) &R_swig_raptor_locator_column, 2}, {"R_swig_librdf_free_serializer", (DL_FUNC) &R_swig_librdf_free_serializer, 1}, {"R_swig_librdf_new_serializer", (DL_FUNC) &R_swig_librdf_new_serializer, 4}, {"R_swig_librdf_model_get_targets", (DL_FUNC) &R_swig_librdf_model_get_targets, 3}, {"R_swig_librdf_node_get_literal_value", (DL_FUNC) &R_swig_librdf_node_get_literal_value, 1}, {"R_swig_librdf_model_transaction_commit", (DL_FUNC) &R_swig_librdf_model_transaction_commit, 2}, {"R_swig_librdf_parser_parse_counted_string_as_stream", (DL_FUNC) &R_swig_librdf_parser_parse_counted_string_as_stream, 4}, {"R_swig_librdf_free_query_results", (DL_FUNC) &R_swig_librdf_free_query_results, 1}, {"R_swig_librdf_world_set_logger", (DL_FUNC) &R_swig_librdf_world_set_logger, 3}, {"R_swig_librdf_query_results_get_count", (DL_FUNC) &R_swig_librdf_query_results_get_count, 2}, {"R_swig_librdf_parser_get_namespaces_seen_count", (DL_FUNC) &R_swig_librdf_parser_get_namespaces_seen_count, 2}, {"R_swig_librdf_model_transaction_start", (DL_FUNC) &R_swig_librdf_model_transaction_start, 2}, {"R_swig_librdf_new_node", (DL_FUNC) &R_swig_librdf_new_node, 1}, {"R_swig_librdf_node_get_literal_value_language", (DL_FUNC) &R_swig_librdf_node_get_literal_value_language, 1}, {"R_swig_librdf_new_digest", (DL_FUNC) &R_swig_librdf_new_digest, 2}, {"R_swig_librdf_free_digest", (DL_FUNC) &R_swig_librdf_free_digest, 1}, {"R_swig_librdf_node_get_literal_value_datatype_uri", (DL_FUNC) &R_swig_librdf_node_get_literal_value_datatype_uri, 1}, {"R_swig_librdf_log_message_message", (DL_FUNC) &R_swig_librdf_log_message_message, 1}, {"R_swig_librdf_new_node_from_literal", (DL_FUNC) &R_swig_librdf_new_node_from_literal, 4}, {"R_swig_librdf_new_node_from_typed_literal", (DL_FUNC) &R_swig_librdf_new_node_from_typed_literal, 4}, {"R_swig_librdf_node_is_literal", (DL_FUNC) &R_swig_librdf_node_is_literal, 2}, {"R_swig_librdf_parser_parse_string_into_model", (DL_FUNC) &R_swig_librdf_parser_parse_string_into_model, 5}, {"R_swig_librdf_parser_parse_into_model", (DL_FUNC) &R_swig_librdf_parser_parse_into_model, 5}, {"R_swig_librdf_new_model", (DL_FUNC) &R_swig_librdf_new_model, 3}, {"R_swig_librdf_new_model_from_model", (DL_FUNC) &R_swig_librdf_new_model_from_model, 1}, {"R_swig_librdf_free_model", (DL_FUNC) &R_swig_librdf_free_model, 1}, {"R_swig_librdf_log_message_locator", (DL_FUNC) &R_swig_librdf_log_message_locator, 1}, {"R_swig_librdf_parser_get_namespaces_seen_prefix", (DL_FUNC) &R_swig_librdf_parser_get_namespaces_seen_prefix, 2}, {"R_swig_librdf_free_query", (DL_FUNC) &R_swig_librdf_free_query, 1}, {"R_swig_librdf_new_query_from_query", (DL_FUNC) &R_swig_librdf_new_query_from_query, 1}, {"R_swig_librdf_new_query", (DL_FUNC) &R_swig_librdf_new_query, 5}, {"R_swig_librdf_new_statement_from_nodes", (DL_FUNC) &R_swig_librdf_new_statement_from_nodes, 4}, {"R_swig_librdf_node_is_blank", (DL_FUNC) &R_swig_librdf_node_is_blank, 2}, {"R_swig_librdf_new_node_from_blank_identifier", (DL_FUNC) &R_swig_librdf_new_node_from_blank_identifier, 2}, {"R_swig_librdf_node_get_blank_identifier", (DL_FUNC) &R_swig_librdf_node_get_blank_identifier, 1}, {"R_swig_librdf_statement_get_subject", (DL_FUNC) &R_swig_librdf_statement_get_subject, 1}, {"R_swig_librdf_statement_set_subject", (DL_FUNC) &R_swig_librdf_statement_set_subject, 2}, {"R_swig_librdf_stream_next", (DL_FUNC) &R_swig_librdf_stream_next, 2}, {"R_swig_librdf_version_major_get", (DL_FUNC) &R_swig_librdf_version_major_get, 1}, {"R_swig_librdf_version_minor_get", (DL_FUNC) &R_swig_librdf_version_minor_get, 1}, {"R_swig_raptor_version_major_get", (DL_FUNC) &R_swig_raptor_version_major_get, 1}, {"R_swig_raptor_version_minor_get", (DL_FUNC) &R_swig_raptor_version_minor_get, 1}, {"R_swig_rasqal_version_major_get", (DL_FUNC) &R_swig_rasqal_version_major_get, 1}, {"R_swig_rasqal_version_minor_get", (DL_FUNC) &R_swig_rasqal_version_minor_get, 1}, {"R_swig_librdf_model_add", (DL_FUNC) &R_swig_librdf_model_add, 5}, {"R_swig_librdf_model_get_arcs", (DL_FUNC) &R_swig_librdf_model_get_arcs, 3}, {"R_swig_librdf_log_message_facility", (DL_FUNC) &R_swig_librdf_log_message_facility, 2}, {"R_swig_librdf_node_get_type", (DL_FUNC) &R_swig_librdf_node_get_type, 2}, {"R_swig_librdf_query_results_get_binding_value_by_name", (DL_FUNC) &R_swig_librdf_query_results_get_binding_value_by_name, 2}, {"R_swig_librdf_new_world", (DL_FUNC) &R_swig_librdf_new_world, 0}, {"R_swig_librdf_free_world", (DL_FUNC) &R_swig_librdf_free_world, 1}, {"R_swig_librdf_iterator_next", (DL_FUNC) &R_swig_librdf_iterator_next, 2}, {"R_swig_librdf_serializer_set_namespace", (DL_FUNC) &R_swig_librdf_serializer_set_namespace, 4}, {"R_swig_librdf_query_results_get_boolean", (DL_FUNC) &R_swig_librdf_query_results_get_boolean, 2}, {"R_swig_librdf_query_results_is_boolean", (DL_FUNC) &R_swig_librdf_query_results_is_boolean, 2}, {"R_swig_raptor_locator_line", (DL_FUNC) &R_swig_raptor_locator_line, 2}, {"R_swig_librdf_model_context_remove_statements", (DL_FUNC) &R_swig_librdf_model_context_remove_statements, 3}, {"R_swig_librdf_model_context_add_statements", (DL_FUNC) &R_swig_librdf_model_context_add_statements, 4}, {"R_swig_librdf_model_find_statements", (DL_FUNC) &R_swig_librdf_model_find_statements, 2}, {"R_swig_librdf_model_add_statements", (DL_FUNC) &R_swig_librdf_model_add_statements, 3}, {"R_swig_librdf_digest_final", (DL_FUNC) &R_swig_librdf_digest_final, 1}, {"R_swig_librdf_new_uri_from_filename", (DL_FUNC) &R_swig_librdf_new_uri_from_filename, 2}, {"R_swig_librdf_iterator_end", (DL_FUNC) &R_swig_librdf_iterator_end, 2}, {"R_swig_librdf_uri_equals", (DL_FUNC) &R_swig_librdf_uri_equals, 3}, {"R_swig_librdf_node_equals", (DL_FUNC) &R_swig_librdf_node_equals, 3}, {"R_swig_librdf_statement_equals", (DL_FUNC) &R_swig_librdf_statement_equals, 3}, {"R_swig_librdf_node_get_uri", (DL_FUNC) &R_swig_librdf_node_get_uri, 1}, {"R_swig_librdf_free_storage", (DL_FUNC) &R_swig_librdf_free_storage, 1}, {"R_swig_librdf_new_storage_from_storage", (DL_FUNC) &R_swig_librdf_new_storage_from_storage, 1}, {"R_swig_librdf_new_storage", (DL_FUNC) &R_swig_librdf_new_storage, 4}, {"R_swig_librdf_model_size", (DL_FUNC) &R_swig_librdf_model_size, 2}, {"R_swig_librdf_query_results_to_string2", (DL_FUNC) &R_swig_librdf_query_results_to_string2, 5}, {"R_swig_librdf_log_message_code", (DL_FUNC) &R_swig_librdf_log_message_code, 2}, {"R_swig_librdf_version_decimal_get", (DL_FUNC) &R_swig_librdf_version_decimal_get, 1}, {"R_swig_raptor_version_decimal_get", (DL_FUNC) &R_swig_raptor_version_decimal_get, 1}, {"R_swig_rasqal_version_decimal_get", (DL_FUNC) &R_swig_rasqal_version_decimal_get, 1}, {"R_swig_librdf_new_node_from_uri_local_name", (DL_FUNC) &R_swig_librdf_new_node_from_uri_local_name, 3}, {"R_swig_librdf_uri_compare", (DL_FUNC) &R_swig_librdf_uri_compare, 3}, {"R_swig_librdf_new_uri", (DL_FUNC) &R_swig_librdf_new_uri, 2}, {"R_swig_librdf_model_get_sources", (DL_FUNC) &R_swig_librdf_model_get_sources, 3}, {"R_swig_librdf_parser_get_namespaces_seen_uri", (DL_FUNC) &R_swig_librdf_parser_get_namespaces_seen_uri, 2}, {NULL, NULL, 0} }; SWIGEXPORT void R_init_redland(DllInfo *dll) { R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); R_useDynamicSymbols(dll, FALSE); } redland/src/Makevars.win0000644000176200001440000000122313544473277014760 0ustar liggesusersPKG_CPPFLAGS= -I../windows/redland-1.0.17/include \ -I../windows/redland-1.0.17/include/rasqal \ -I../windows/redland-1.0.17/include/raptor2 PKG_LIBS=-L../windows/redland-1.0.17/lib${R_ARCH} -lrdf \ -pipe -lrasqal -lpcre -lraptor2 -lxml2 -lpcre -lws2_32 ## Workaround for missing _mkgmtime on Win32, See also ## https://sourceforge.net/p/mingw-w64/bugs/473/ ifeq "${R_ARCH}" "/i386" ifeq "${R_COMPILED_BY}" "gcc 4.9.3" PKG_LIBS += -lmsvcr100 endif endif PKG_CFLAGS=-DRASQAL_STATIC -DRAPTOR_STATIC -DREDLAND_STATIC all: clean winlibs winlibs: clean "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" clean: rm -f $(OBJECTS) redland.dll redland/src/Makevars.in0000644000176200001440000000011213544473277014565 0ustar liggesusersPKG_CPPFLAGS=@cflags@ PKG_LIBS=@libs@ all: clean clean: rm -f *.o *.so redland/vignettes/0000755000176200001440000000000013546534033013701 5ustar liggesusersredland/vignettes/redland_overview.Rmd0000644000176200001440000000473513544473277017727 0ustar liggesusers--- title: "redland: create, query and write RDF graphs" author: "Peter Slaughter" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{redland RDF} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ## Introduction The `redland` R package provides methods to create, query and write to disk data stored in the Resource Description Framework (RDF). RDF provides a standardized way to make statements about resources and the relationships between them. Typical resources include datasets that are available via URLs. Resources don't have to be available online, for example a resource could also be the name of the person that created a dataset. A collection of RDF statements comprise an RDF graph, which can be read and interpreted by an RDF capable software application that uses the resources described in the graph. An introduction to RDF can be found at http://www.w3.org/TR/2014/NOTE-rdf11-primer-20140624. ## Examples The following example reads an RDF graph from a disk file that was previously saved in the RDF/XML format: ```{r} library(redland) world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world=world, storage, options="") parser <- new("Parser", world) parseFileIntoModel(parser, world, system.file("extdata", "dc.rdf", package="redland"), model) ``` Next the RDF graph is queried for statements of interest, using the [SPARQL query syntax](http://www.w3.org/TR/rdf-sparql-query) ```{r} queryString <- 'PREFIX dc: SELECT ?a ?c WHERE { ?a dc:creator ?c . }' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) queryResult <- executeQuery(query, model) results <- getResults(query, model, "rdfxml") cat(sprintf("Results from query: %s\n", results)) ``` Next, additional statements can be added to the RDF graph: ```{r} stmt <- new("Statement", world=world, subject="http://www.dajobe.org/", predicate="http://purl.org/dc/elements/1.1/language", object="en") addStatement(model, stmt) ``` Now the RDF graph can be written to disk: ```{r} serializer <- new("Serializer", world, mimeType="application/rdf+xml") status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") filePath <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".rdf") status <- serializeToFile(serializer, world, model, filePath) ``` redland/NEWS0000644000176200001440000000350613544473277012406 0ustar liggesusersVersion 1.0.17-11 BUG FIXES * Removed deprecated function warnings during package build. (#79) * Fix memory protection problems reported by 'rchk'. (#78) * Deprecate the function getNextResult(), which is superceded by getResults(). (#79) Version 1.0.17-10 BUG FIXES * The function 'statement()' now accepts an RDF language tag for literal nodes (#64) NEW FEATURES * Ability to retrieve all query results at once. (#58) * New function getNodeValue() (#65) * New function getResults() (#58) * New function writeResults() (#58) Version 1.0.17-9 BUG FIXES * Vignettes now build with R 3.4.0 and are now updated to the ./doc directory by package installation. * Added an installation cleanup script Version 1.0.17-8 NEW FEATURES * For Mac OS X, binary installations no longer require Redland system libraries to be installed, as these libraries are now statically linked into the redland package shared library 'redland.so'. BUG FIXES * Fixed an unresolved symbol problem with Windows 32 bit builds under R 3.3.0 (and gcc 4.9.3 tool chain) Version 1.0.17-7 BUG FIXES * Unit tests have been updated to be compatible with the changes in the 'testthat' package that were made in development version testthat_0.11.0.9000, and will be released to CRAN on 4/4/2016. The updated unit tests pass with both the current version of testthat (0.11.0) and the new version (0.11.0.9000). Version 1.0.17 -------------- NEW FEATURES * Initial version (see help topic for 'redland', e.g. "?redland") * Includes API wrappers for corresponding Redland 1.0.17 C library NEW S4 CLASSES * Classes Node, Statement, and Model for representing RDF * Classes Storage and World for managing collections of statements * Classes Parser and Serializer for for loading and saving models * classes Query and QueryResults for searching models using SPARQL redland/configure.win0000644000176200001440000000000013544473277014371 0ustar liggesusersredland/R/0000755000176200001440000000000013544502142012064 5ustar liggesusersredland/R/Model.R0000644000176200001440000001004313544473277013265 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #' @title A Redland Model object #' @description A Model object is used to store the statements (triples) of an RDF model. #' @details A Model may be created manually by creating \code{\link{Statement}} and adding #' them to the Model using \code{\link{addStatement}}, or a Model may be read in from a #' previously saved file using \code{\link{parseFileIntoModel}}. Once a Model is created, #' it can be queried using \code{\link{Query}}. #' @seealso View examples of creating models by viewing the \code{'redland_overview'} vignette: \code{'vignette("redland_overview")'} #' @slot librdf_model A redland model object #' @rdname Model-class #' @aliases Model #' @include redland.R #' @include World.R #' @include Storage.R #' @include Statement.R #' @keywords classes #' @section Methods: #' \itemize{ #' \item{\code{\link{Model-initialize}}}{: Initialize a Model object} #' \item{\code{\link{addStatement}}}{: Add a Statement object to the Model} #' \item{\code{\link{freeModel}}}{: Free memory used by a librdf model object} #' } #' @seealso \code{\link{redland}}{: redland package} #' @export #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") setClass("Model", slots=c(librdf_model = "_p_librdf_model_s")) #' Constructor for a Model object. #' @param .Object a Node object #' @param world a World object #' @param storage a Storage object #' @param options extra options for model initialization #' @rdname Model-initialize #' @aliases Model-initialize #' @return the World object #' @export setMethod("initialize", signature = "Model", definition = function(.Object, world, storage, options) { stopifnot(!is.null(world), !is.null(storage)) .Object@librdf_model <- librdf_new_model(world@librdf_world, storage@librdf_storage, options); return(.Object) }) #' Add a Statement object to the Model #' @rdname addStatement #' @param .Object a Model object #' @param statement the Statement that will be added #' @export #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") setGeneric("addStatement", function(.Object, statement) { standardGeneric("addStatement") }) #' @rdname addStatement setMethod("addStatement", signature("Model", "Statement"), function(.Object, statement) { librdf_model_add_statement(.Object@librdf_model, statement@librdf_statement); }) #' Free memory used by a librdf model. #' @rdname freeModel #' @details After this method is called, the Model object is no longer usable and should #' be deleted \code{"rm(model)"} and a new object created. #' @param .Object a Model object #' @export #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' # At this point, some operations would be performed with the model. #' # See '?redland' for a complete example. #' # When the Model object is no longer needed, the resources it has allocated can be freed. #' freeModel(model) #' rm(model) setGeneric("freeModel", function(.Object) { standardGeneric("freeModel") }) #' @rdname freeModel setMethod("freeModel", signature("Model"), function(.Object) { librdf_free_model(.Object@librdf_model) }) redland/R/Serializer.R0000644000176200001440000001631013544473277014341 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title An RDF Serializer object. #' @description The Serializer class provides methods to convert a Model object #' to other forms, for example, write out a Model to a file. #' @slot librdf_serializer A redland statement object #' @rdname Serializer-class #' @aliases Serializer #' @include redland.R #' @include World.R #' @include Model.R #' @keywords classes #' @export #' @section Methods: #' \itemize{ #' \item{\code{\link{Serializer-initialize}}}{: Initialize a Serializer object.} #' \item{\code{\link{setNameSpace}}}{: Set a namespace for the serializer.} #' \item{\code{\link{serializeToCharacter}}}{: Serialize a model to a character vector.} #' \item{\code{\link{serializeToFile}}}{: Serialize a model to a file.} #' \item{\code{\link{freeSerializer}}}{: Free memory used by a librdf serializer.} #' } #' @seealso \code{\link{redland}}{: redland package} #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' filePath <- system.file("extdata/example.rdf", package="redland") #' parser <- new("Parser", world) #' parseFileIntoModel(parser, world, filePath, model) #' # Creat the default "rdfxml" serizlizer #' serializer <- new("Serializer", world) #' # Add a namespace definition to the serializer #' status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") #' rdf <- serializeToCharacter(serializer, world, model, baseUri="") setClass("Serializer", slots = c(librdf_serializer = "_p_librdf_serializer_s")) #' Construct a Serializer object. #' @rdname Serializer-initialize #' @aliases Serializer-initialize #' @param .Object the Serializer object #' @param world a World object #' @param name name of a previously created serializer factory to use #' @param mimeType a mime type of the syntax of the model #' @param typeUri a URI for the syntax of the model #' @return the Serializer object #' @export setMethod("initialize", signature = "Serializer", definition = function(.Object, world, name="rdfxml", mimeType="application/rdf+xml", typeUri=as.character(NA)) { # Ensure that all provided params are not null stopifnot(!is.null(world)) if(is.na(typeUri)) { librdf_uri <- NULL } else { librdf_uri <- librdf_new_uri(world@librdf_world, typeUri) } # Create the underlying redland statement object .Object@librdf_serializer <- librdf_new_serializer(world@librdf_world, name, mimeType, librdf_uri); return(.Object) }) #' Set a namespace for the serializer. #' @rdname setNameSpace #' @param .Object a Serializer object #' @param world a World object #' @param namespace the namespace to add to the serializer #' @param prefix the namespace prefix to associate with the namespace #' @export setGeneric("setNameSpace", function(.Object, world, namespace, prefix) { standardGeneric("setNameSpace") }) #' @rdname setNameSpace setMethod("setNameSpace", signature("Serializer", "World", "character", "character"), function(.Object, world, namespace, prefix) { stopifnot(!is.null(world)) librdf_uri <- librdf_new_uri(world@librdf_world, namespace) librdf_serializer_set_namespace(.Object@librdf_serializer, librdf_uri, prefix) }) #' Serialize a model to a character vector. #' @rdname serializeToCharacter #' @param .Object a Serializer object #' @param world a World object #' @param model a Model object #' @param ... Additional parameters #' @return a character vector containing the serialized model #' @export setGeneric("serializeToCharacter", function(.Object, world, model, ...) { standardGeneric("serializeToCharacter") }) #' @rdname serializeToCharacter #' @param baseUri a URI to prepend to relative URIs in the document setMethod("serializeToCharacter", signature("Serializer", "World", "Model"), function(.Object, world, model, baseUri=as.character(NA)) { stopifnot(!is.null(world)) stopifnot(!is.null(model)) # Convert baseUri to a librdf_uri if(is.na(baseUri)) { librdf_uri <- NULL } else { librdf_uri <- librdf_new_uri(world@librdf_world, baseUri) } RDFstring <- librdf_serializer_serialize_model_to_string(.Object@librdf_serializer, librdf_uri, model@librdf_model) return(RDFstring) }) #' Serialize a model to a file. #' @rdname serializeToFile #' @param .Object a Serializer object #' @param world a World object #' @param model a Model object #' @param filePath a file path that the serialized model will be written to #' @param ... Additional parameters #' @return an integer containing the return status where non zero indicates an error occurred during serialization #' @export setGeneric("serializeToFile", function(.Object, world, model, filePath, ...) { standardGeneric("serializeToFile") }) #' @rdname serializeToFile #' @param baseUri a base URI to use for the serialization setMethod("serializeToFile", signature("Serializer", "World", "Model", "character"), function(.Object, world, model, filePath, baseUri=as.character(NA)) { stopifnot(!is.null(world)) stopifnot(!is.null(model)) stopifnot(!is.null(filePath)) # Convert baseUri to a librdf_uri if(is.na(baseUri)) { librdf_uri <- NULL } else { librdf_uri <- librdf_new_uri(world@librdf_world, baseUri) } status <-librdf_serializer_serialize_model_to_file (.Object@librdf_serializer, filePath, librdf_uri, model@librdf_model); return(status) }) #' Free memory used by a librdf serializer. #' @rdname freeSerializer #' @param .Object a Serializer object #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' filePath <- system.file("extdata/example.rdf", package="redland") #' parser <- new("Parser", world) #' parseFileIntoModel(parser, world, filePath, model) #' # Creat the default "rdfxml" serizlizer #' serializer <- new("Serializer", world) #' # At this point, some operations would be performed with the Serializer object. #' # See '?Serializer' for a complete example. #' # When the serializer object is no longer needed, the resources it had allocated can be freed. #' freeSerializer(serializer) #' rm(serializer) #' @export setGeneric("freeSerializer", function(.Object) { standardGeneric("freeSerializer") }) #' @rdname freeSerializer setMethod("freeSerializer", signature("Serializer"), function(.Object) { librdf_free_serializer(.Object@librdf_serializer) }) redland/R/util.R0000644000176200001440000000222613544473277013206 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' Determine whether an externalptr object is NULL. #' #' The pointer is treated as an externalptr and checked via a call in C to see if it is NULL. #' @param pointer externalptr to be checked for NULL value #' @return logical TRUE if the pointer is NULL, otherwise FALSE #' @export is.null.externalptr <- function(pointer) { if (class(pointer)!="externalptr") stop("pointer is not an externalptr.") rv <- .Call("isnull", pointer) return(rv) } redland/R/Node.R0000644000176200001440000002324613544473277013123 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title A Redland Node, used to store one node in an RDF triple statement. #' @description A Node represents a RDF Resource, Property, Literal or an RDF blank Node. #' @slot librdf_node A redland node object #' @include redland.R #' @include World.R #' @rdname Node-class #' @encoding UTF-8 #' @aliases Node #' @keywords classes #' @export #' @section Methods: #' \itemize{ #' \item{\code{\link{Node-initialize}}}{: Initialize a Node object.} #' \item{\code{\link{getNodeType}}}{: Determine the node type and return as a string.} #' \item{\code{\link{getNodeValue}}}{: Determine the node type and return as a string.} #' \item{\code{\link{getBlankNodeId}}}{: Get the value of the node as a string.} #' } #' @seealso \code{\link{redland}}{: redland package} #' @examples #' world <- new("World") #' # a blank node is created with a unique identifier generated by librdf #' node <- new("Node", world) #' # a blank node is created with a unique identifier generated by librdf #' node <- new("Node", world, blank=NULL) #' # a blank node is created with the user specified identifier, i.e. "_:id1" #' node <- new("Node", world, blank="someid") #' # a node type of 'literal' is created #' node <- new("Node", world, literal="A Node Value") #' # a Node type of 'resource' is created #' node <- new("Node", world, uri="http://www.example.com") #' # Create a literal node, specifying a language encoding #' node <- new("Node", world, literal="Gérard de La Martinière", language="fr") setClass("Node", slots = c(librdf_node = "_p_librdf_node_s")) #' Initialize a Node object. #' @description A Node has an associated type corresponding to the RDF component that it is representing. The list of possible #' types is "resource", "literal" or "blank". #' @details The url=' and 'literal=' arguments determine which type of Node is created. The Node type affects how the Node is processed #' in serialization, for example a Node created with 'node1 <- new("Node", literal="http://www.example.com")' is processed #' differently that a Node created with 'node1 <- new("Node", url="http://www.example.com")', with the former being processed #' as an RDF literal and the latter processed as an RDF resource. #' @rdname Node-initialize #' @aliases Node-initialize #' @param .Object the Node object to be initialized #' @param world a World object #' @param literal a literal character value to be assigned to the node #' @param uri a uri character value to be assigned to the node #' @param blank a blank node identifier to be assigned to the node #' @param datatype_uri a uri used to specify the datatype of a literal node, i.e. "http://www.w3.org/2001/XMLSchema#string" #' @param language a character value specifying the RDF language tag (excluding the "@" symbol), i.e. "fr" #' @note Refer to https://www.w3.org/TR/rdf11-concepts information on language tags. #' @return the Node object #' @export setMethod("initialize", signature = "Node", definition = function(.Object, world, literal, uri, blank, datatype_uri, language) { stopifnot(!is.null(world)) # Neither 'literal' nor 'uri', nor 'blank' was specified, so create a blank node with librdf generated id if(missing(literal) && missing(uri) && missing(blank)) { .Object@librdf_node <- librdf_new_node(world@librdf_world) } else if (!missing(uri)) { # 'uri=' was specified librdf_uri <- librdf_new_uri(world@librdf_world, uri) .Object@librdf_node <- librdf_new_node_from_uri(world@librdf_world, librdf_uri) } else if (!missing(literal)) { # a literal value was specified, but a blank value is not valid if(missing(language)) language="" # No default for language, so if not specified, set to blank #if(!grepl(language, "@")) language <- sprintf("@%s", language) if(literal == "") { stop(sprintf("Invalid value specified for Node type of literal: \"%s\"", literal)) } else { if (missing(datatype_uri)) { .Object@librdf_node <- librdf_new_node_from_literal(world@librdf_world, literal, language, 0) } else { # The datatype_uri specifies the RDF type to be associated with this node # and can only be applied to a literal value, therefor only to an object node # that has a literal value. When a statement with such a node is serialize to RDF/XML, the # rdf type is serialized as an XML attribute, i.e. for the literal node "John Smith" below # the datatype is an xsd:string: # # # John Smith # # type_uri <- librdf_new_uri(world@librdf_world, datatype_uri) .Object@librdf_node <- librdf_new_node_from_typed_literal(world@librdf_world, literal, language, type_uri) } } } else if (!missing(blank)) { # Create a blank node with a librdf generated unique identifier if(is.null(blank) || blank == "") { .Object@librdf_node <- librdf_new_node(world@librdf_world) } else { # Create a blank node with a user specified identifier .Object@librdf_node <- librdf_new_node_from_blank_identifier(world@librdf_world, blank) } } else { # If not creating a blank node, either 'literal' or 'uri' must be specified stop("Please specify either 'literal=\"value\"', 'uri=\"value\"' or 'blank=\"value\"'") } return(.Object) }) #' Determine the node type and return as a string #' @description A Node has a type that is assigned at initialization and can have one of the following values: #' 'resource', 'literal', 'blank' and 'unknown'. #' @rdname getNodeType #' @param .Object a Node object #' @return a character vector containing the Node type #' @examples #' world <- new("World") #' node <- new("Node", world, uri="http://www.example.com") #' nodeType <- getNodeType(node) #' @export setGeneric("getNodeType", function(.Object) { standardGeneric("getNodeType") }) #' @rdname getNodeType setMethod("getNodeType", signature("Node"), function(.Object) { if(librdf_node_is_resource(.Object@librdf_node)) { return("resource") } else if (librdf_node_is_literal(.Object@librdf_node)) { return("literal") } else if (librdf_node_is_blank(.Object@librdf_node)) { return("blank") } else { return("unknown") } }) #' Get the blank identifier that has been assigned for a specified Node object #' @details When a Node object is initialized with no value specified, i.e. node <- Node(""), #' a blank node is created and a locally unique identifier is generated by librdf. This method #' retrieves this identifier and returns in to the caller. #' @rdname getBlankNodeId #' @param .Object a Node object #' @return a blank node identifier #' @examples #' world <- new("World") #' # a blank node is created with a unique identifier generated by librdf #' node <- new("Node", world, blank=NULL) #' nodeId <- getBlankNodeId(node) #' @export setGeneric("getBlankNodeId", function(.Object) { standardGeneric("getBlankNodeId") }) #' @rdname getBlankNodeId setMethod("getBlankNodeId", signature("Node"), function(.Object) { if(librdf_node_is_blank(.Object@librdf_node)) { return(librdf_node_get_blank_identifier(.Object@librdf_node)) } else { return(as.character(NA)) } }) #' Get the value of the node as a string #' @details The value of the node is returned as a string. If the node type is #' 'blank', then the blank node identifier is returned. If the node type is #' 'literal', then the literal value is returned with the form ""@, #' e.g. \"¡Hola, amigo! ¿Cómo estás?"@es". If the node type is 'uri' #' then the value is returned as a string. #' @rdname getNodeValue #' @encoding UTF-8 #' @param .Object a Node object #' @return a string representation of the Node's value #' @examples #' world <- new("World") #' node <- new("Node", world, literal="¡Hola, amigo! ¿Cómo estás?", language="es") #' value <- getNodeValue(node) #' @export setGeneric("getNodeValue", function(.Object) { standardGeneric("getNodeValue") }) #' @rdname getNodeValue setMethod("getNodeValue", signature("Node"), function(.Object) { if(librdf_node_is_resource(.Object@librdf_node)) { librdf_uri <- librdf_node_get_uri(.Object@librdf_node) val <- librdf_uri_to_string(librdf_uri) librdf_free_uri(librdf_uri) return(val) } else if (librdf_node_is_literal(.Object@librdf_node)) { val <- librdf_node_get_literal_value(.Object@librdf_node) lang <- librdf_node_get_literal_value_language(.Object@librdf_node) # If the node has a language tag defined, then include it, otherwise don't if(is.null(lang) || is.na(lang) || lang == "") { literal <- sprintf("%s", val) } else { literal <- sprintf("\"%s\"@%s\"", val, lang) } return(literal) } else if (librdf_node_is_blank(.Object@librdf_node)) { return(getBlankNodeId(.Object)) } else { stop("Node type unknown, cannot get the node value") } }) redland/R/Query.R0000644000176200001440000003007413544473277013340 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title Query an RDF model #' @description The Query class is used to execute a query on a Model object using the default query #' language SPARQL. For more information, please refer to \url{http://librdf.org/rasqal/} for details on #' supported query languages. #' @details A Query is executed using the executeQuery method, which returns a QueryResults object that #' can be iterated over the query solution sequence. #' @slot librdf_query A redland query object #' @slot librdf_world A redland world object #' @rdname Query-class #' @aliases Query #' @include redland.R #' @keywords classes #' @export #' @references www.example.com #' @section Methods: #' \itemize{ #' \item{\code{\link{Query-initialize}}}{: Initialize a Query object.} #' \item{\code{\link{executeQuery}}}{: Execute a query.} #' \item{\code{\link{setQueryResultLimit}}}{: Set limit on returned query results.} #' \item{\code{\link{getQueryResultLimit}}}{: Get the query result limit.} #' \item{\code{\link{getResults}}}{: Return all query results.} #' \item{\code{\link{writeResults}}}{: Write query results to a file.} #' \item{\code{\link{freeParser}}}{: Free memory used by a librdf query.} #' } #' @seealso \code{\link{redland}}{: redland package} #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' stmt <- new("Statement", world=world, #' subject="https://cn.dataone.org/cn/v1/resolve/urn:uuid:274a0c5c-3082-4562-bbd3-2b1288768cac", #' predicate="http://www.w3.org/ns/prov#hadPlan", #' object="https://cn.dataone.org/cn/v1/resolve/urn:uuid:01305f45-f22b-40c8-8d27-00357d01e4a5") #' status <- addStatement(model, stmt) #' stmt <- new("Statement", world=world, #' subject="https://orcid.org/0000-0002-2192-403X", #' predicate="http://www.w3.org/ns/prov#Agent", #' object="slaughter", #' objectType="literal", #' datatype_uri="http://www.w3.org/2001/XMLSchema#string") #' status <- addStatement(model, stmt) #' queryString <- #' paste("PREFIX orcid: ", #' "PREFIX dataone: ", #' "PREFIX prov: ", #' "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") #' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) #' # Return all results as a string #' results <- getResults(query, model, "rdfxml") #' setClass("Query", slots = c(librdf_query = "_p_librdf_query", librdf_world = "_p_librdf_world_s")) #' Initialize the Query object. #' @rdname Query-initialize #' @aliases Query-initialize #' @param .Object the Query object #' @param world a World object #' @param querystring a query string for the language specified in 'query_language' #' @param base_uri a URI to prepend to relative URI in the document #' @param query_language the query language to execute the querystring with #' @param query_uri a URI to prepend to terms in the query #' @return the Query object #' @export setMethod("initialize", signature = "Query", definition = function(.Object, world, querystring, base_uri=NULL, query_language="sparql", query_uri=NULL) { stopifnot(!is.null(querystring)) .Object@librdf_query <- librdf_new_query(world@librdf_world, query_language, base_uri, querystring, query_uri) .Object@librdf_world <- world@librdf_world return(.Object) }) #' Execute a query #' @description The initialize query is executed and the result is returned as a QueryResult object #' @rdname executeQuery #' @param .Object a Query object #' @param model a Model object containing the statements to query #' @return a QueryResults object #' @export setGeneric("executeQuery", function(.Object, model) { standardGeneric("executeQuery") }) #' @rdname executeQuery setMethod("executeQuery", signature("Query"), function(.Object, model) { results <- librdf_query_execute(.Object@librdf_query, model@librdf_model) queryResultObj <- new("QueryResults", results) return(queryResultObj) }) #' Set limit on returned query results #' @rdname setQueryResultsLimit #' @aliases setQueryResultsLimit #' @param .Object a Query object #' @param limit the result set limit. Specify a value >= to have a limit, or a value < 0 to have no limit. #' @export setGeneric("setQueryResultLimit", function(.Object, limit) { standardGeneric("setQueryResultLimit") }) #' @rdname setQueryResultsLimit setMethod("setQueryResultLimit", signature("Query"), function(.Object, limit) { librdf_query_set_limit(.Object@librdf_query, as.integer(limit)) }) #' Get the query result limit #' @rdname getQueryResultsLimit #' @param .Object a Query object #' @return the query result limit. If a limit is set then the value will be >= 0. If the value is < 0, no limit is set #' @export setGeneric("getQueryResultLimit", function(.Object) { standardGeneric("getQueryResultLimit") }) #' @rdname getQueryResultsLimit setMethod("getQueryResultLimit", signature("Query"), function(.Object) { return(librdf_query_get_limit (.Object@librdf_query)) }) #' Return all query results #' @details After this method is called, the Query object is no longer usable and should #' be deleted \code{"rm(query)"} and a new object created. #' @rdname getResults #' @param .Object a Query object #' @param model a Model object #' @param formatName a string specifying the RDF format name. Currently the supported formats are "rdfxml" ,"turtle", "json", "csv" #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' stmt <- new("Statement", world=world, #' subject="https://orcid.org/0000-0002-2192-403X", #' predicate="http://www.w3.org/ns/prov#Agent", #' object="slaughter", #' objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") #' #objectType="literal", language="en") #' status <- addStatement(model, stmt) #' queryString <- paste("PREFIX orcid: ", #' "PREFIX dataone: ", #' "PREFIX prov: ", #' "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") #' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) #' # Return all results as a string #' results <- getResults(query, model, "rdfxml") #' results <- getResults(query, model, "turtle") #' results <- getResults(query, model, "json") #' #' # When the query object is no longer needed, the resources it had allocated can be freed. #' freeQuery(query) #' rm(query) #' @export #' @param ... additional parameters setGeneric("getResults", function(.Object, model, ...) { standardGeneric("getResults") }) #' @rdname getResults setMethod("getResults", signature("Query"), function(.Object, model, formatName="rdfxml") { queryResult <- executeQuery(.Object, model) if (!is.null(queryResult@librdf_query_results) && librdf_query_results_finished(queryResult@librdf_query_results) == 0) { # It appears that this redland C library function doesn't allow specifying 'formatName' as "" or NULL, so the next two # arguments can never be used. Also, a text value has to be specified for the 3rd argument (mimeType) otherwise the function crashes. if(is.null(formatName) || formatName == "") formatName="rdfxml" results <- librdf_query_results_to_string2(queryResult@librdf_query_results, formatName, "application/rdf+xml", NULL, NULL); return(results) } else { return(NULL) } }) #' Write query results to a file. #' @details After this method is called, the Query object is no longer usable and should #' be deleted \code{"rm(query)"} and a new object created. #' @rdname writeResults #' @param .Object a Query object #' @param model a Model object #' @param ... additional parameters #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' stmt <- new("Statement", world=world, #' subject="https://orcid.org/0000-0002-2192-403X", #' predicate="http://www.w3.org/ns/prov#Agent", #' object="slaughter", #' objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") #' status <- addStatement(model, stmt) #' queryString <- paste("PREFIX orcid: ", #' "PREFIX dataone: ", #' "PREFIX prov: ", #' "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") #' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) #' # Return all results as a string #' tf <- tempfile() #' writeResults(query, model, file=tf, mimeType="application/x-turtle") #' #' # When the query object is no longer needed, the resources it had allocated can be freed. #' freeQuery(query) #' rm(query) #' @export setGeneric("writeResults", function(.Object, model, ...) { standardGeneric("writeResults") }) #' @rdname writeResults #' @param file a string specifying the output file #' @param mimeType a string specifying the mimeType of the output file. Currently supported values are "application/x-turtle", "text/plain", "application/json", "text/html" #' @param format_uri (not currently used) #' @param base_uri (not currently used) setMethod("writeResults", signature("Query"), function(.Object, model, file, mimeType="application/x-turtle", format_uri=NULL, base_uri=NULL) { queryResult <- executeQuery(.Object, model) if (!is.null(queryResult@librdf_query_results) && librdf_query_results_finished(queryResult@librdf_query_results) == 0) { results <- librdf_query_results_to_file2(queryResult@librdf_query_results, file, mimeType, format_uri, base_uri); return(results) } else { return(NULL) } }) #' Free memory used by a librdf query #' @details After this method is called, the Query object is no longer usable and should #' be deleted \code{"rm(query)"} and a new object created. #' @rdname freeQuery #' @param .Object a Query object #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' stmt <- new("Statement", world=world, #' subject="https://orcid.org/0000-0002-2192-403X", #' predicate="http://www.w3.org/ns/prov#Agent", #' object="slaughter", #' objectType="literal", datatype_uri="http://www.w3.org/2001/XMLSchema#string") #' status <- addStatement(model, stmt) #' queryString <- paste("PREFIX orcid: ", #' "PREFIX dataone: ", #' "PREFIX prov: ", #' "SELECT ?a ?c WHERE { ?a prov:Agent ?c . }", sep=" ") #' query <- new("Query", world, queryString, base_uri=NULL, #' query_language="sparql", query_uri=NULL) #' # Return all results as a string #' results <- getResults(query, model, "rdfxml") #' #' # When the query object is no longer needed, the resources it had allocated can be freed. #' freeQuery(query) #' rm(query) #' @export setGeneric("freeQuery", function(.Object) { standardGeneric("freeQuery") }) #' @rdname freeQuery setMethod("freeQuery", signature("Query"), function(.Object) { librdf_free_query(.Object@librdf_query) }) redland/R/Parser.R0000644000176200001440000001415413544473277013470 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title An RDF Parser object #' @description The Parser class provides methods to parse RDF content into a Redland #' RDF model. #' @slot librdf_parser A redland parser object #' @rdname Parser-class #' @aliases Parser #' @include redland.R #' @include World.R #' @include Model.R #' @keywords classes #' @export #' @section Methods: #' \itemize{ #' \item{\code{\link{Parser-initialize}}}{: Initialize a Parser object.} #' \item{\code{\link{parseFileIntoModel}}}{: Parse the contents of a file into a model.} #' \item{\code{\link{freeParser}}}{: Free memory used by a librdf parser.} #' } #' @seealso \code{\link{redland}}{: redland package} #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' # Create the default "rdfxml" parser #' parser <- new("Parser", world) #' filePath <- system.file("extdata/example.rdf", package="redland") #' parseFileIntoModel(parser, world, filePath, model) setClass("Parser", slots = c(librdf_parser = "_p_librdf_parser_s")) #' Initialize a Parser object. #' @description A Parser object is initialized for a specific RDF serialization. #' @details The serialization format that are supported by #' @rdname Parser-initialize #' @aliases Parser-initialize #' @param .Object the Parser object #' @param world a World object #' @param name name of the parser factory to use #' @param mimeType a mime type of the syntax of the model #' @param typeUri a URI for the syntax of the model #' @return the Parser object #' @export setMethod("initialize", signature = "Parser", definition = function(.Object, world, name="rdfxml", mimeType="application/rdf+xml", typeUri=as.character(NA)) { # Ensure that all provided params are not null stopifnot(!is.null(world)) if(is.na(typeUri)) { librdf_uri <- librdf_new_uri(world@librdf_world, "") } else { librdf_uri <- librdf_new_uri(world@librdf_world, typeUri) } # Create the underlying redland statement object .Object@librdf_parser <- librdf_new_parser(world@librdf_world, name, mimeType, librdf_uri); return(.Object) }) #' Parse the contents of a file into a model #' @description The contents of a the specified file are read and parsed into the initialized #' Parser object #' @details The parser factory name specified during initialization determines how the content is #' parsed, for example, if 'rdfxml' was specified during parser initialization, then the parser #' expects RDF/XML content as specified in the W3C recommendation (http://www.we3.org/TR/REC-rdf-syntax) #' @rdname parseFileIntoModel #' @param .Object a Parser object #' @param world a World object #' @param filePath a file that contains the RDF content #' @param model a Model object to parse the RDF content into #' @param ... (Additional parameters) #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' # Create the default "rdfxml" parser #' parser <- new("Parser", world) #' filePath <- system.file("extdata/example.rdf", package="redland") #' parseFileIntoModel(parser, world, filePath, model) #' @export setGeneric("parseFileIntoModel", function(.Object, world, filePath, model, ...) { standardGeneric("parseFileIntoModel") }) #' @rdname parseFileIntoModel #' @param baseUri a base URI (i.e. XML base) to apply to the model setMethod("parseFileIntoModel", signature("Parser", "World", "character", "Model"), function(.Object, world, filePath, model, baseUri=as.character(NA)) { stopifnot(!is.null(model)) if(is.na(baseUri)) { librdf_uri <- NULL } else { librdf_uri <- librdf_new_uri(world@librdf_world, baseUri) } # Construct a file URI of the input file name err <- try(absFilePath <- normalizePath(filePath, mustWork = TRUE)) stopifnot (!class(err) == "try-error") # Absolute paths on Windows require leading slash: /C:/foo/bar if(grepl("^[a-zA-Z]:", absFilePath)) absFilePath <- paste0("/", absFilePath) fileUri = sprintf("file://%s", absFilePath) contentUri <- librdf_new_uri(world@librdf_world, fileUri) status <- librdf_parser_parse_into_model(.Object@librdf_parser, contentUri, NULL, model@librdf_model) }) #' Free memory used by a librdf parser #' @details After freeNode is called, the Node object is no longer usable and should #' be deleted \code{"rm(nodeName)"} and a new object created. #' @rdname freeParser #' @param .Object a Node object #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' parser <- new("Parser", world) #' filePath <- system.file("extdata/example.rdf", package="redland") #' parseFileIntoModel(parser, world, filePath, model) #' # At this point, some operations would be performed with the Model that has been populated #' # with the parser. #' # See '?redland' for a complete example. #' # When the parser object is no longer needed, the resources it had allocated can be freed. #' freeParser(parser) #' rm(parser) #' @export setGeneric("freeParser", function(.Object) { standardGeneric("freeParser") }) #' @rdname freeParser setMethod("freeParser", signature("Parser"), function(.Object) { librdf_free_parser(.Object@librdf_parser) }) redland/R/Statement.R0000644000176200001440000002716113544473277014202 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title An RDF Statement object #' @slot librdf_statement A redland statement object #' @rdname Statement-class #' @aliases Statement #' @encoding UTF-8 #' @include redland.R #' @include World.R #' @include Node.R #' @keywords classes #' @export #' @description A Statement object is created using the provided subject, predicate and object. #' @details A Statement object can be created from Node objects that are provided for the subject, #' predicate and object. An alternative way to create a Statement object is to provide the #' subject, predicate and object as character values. If this later method is used, the character values will be evaluated to #' determine the appropriate RDF type for the subject and object. Note that the RDF type for the predicate will always #' be 'uri' (aka 'resource'). If the automatic determination of RDF types is not desired, then the \code{subjectType} and #' \code{objectType} parameters can be specified to explicitly set the RDF types. #' @section Methods: #' \itemize{ #' \item{\code{\link{Statement-initialize}}}{: Initialize a Statement object.} #' \item{\code{\link{getTermType}}}{: Return the redland node type for the specified RDF term in a statement.} #' \item{\code{\link{freeStatement}}}{: Free memory used by a librdf statement.} #' } #' @seealso \code{\link{redland}}{: redland package} #' @examples #' world <- new("World") #' # Create nodes manually and add to the statment #' subject <- new("Node", blank="_:myid1", world) #' predicate <- new("Node", uri="http://www.example.com/isa", world) #' object <- new("Node", literal="thing", world) #' stmt <- new("Statement", world, subject, predicate, object) #' #' # Create the statement specifying node values directly #' stmt <- new("Statement", world, subject="http://www.example.com/myevent", #' predicate="http://example.com/occurredAt", #' object="Tue Feb 17 14:05:13 PST 2015") #' stmt <- new("Statement", world, subject=NULL, #' predicate="http://www.example.com/hasAddr", #' object="http://www.nothing.com", objectType="literal") #' stmt <- new("Statement", world, subject="http://www.example.com/BobSmith", #' predicate="http://www.example.com/says", #' object="¡Hola, amigo! ¿Cómo estás?", #' objectType="literal", #' language="es") setClass("Statement", slots = c(librdf_statement = "_p_librdf_statement_s")) #' Construct a Statement object. #' @rdname Statement-initialize #' @aliases Statement-initialize #' @param .Object the Statement object #' @param world a World object #' @param subject a Node object #' @param predicate a Node object #' @param object a Node object #' @param subjectType the Node type of the subject, i.e. "blank", "uri" #' @param objectType the Node type of the object, i.e. "blank", "uri", "literal" #' @param datatype_uri the datatype URI to associate with a object literal value #' @param language a character value specifying the RDF language tag for an object literal value (excluding the "@" symbol), i.e. "fr" #' @return the Statement object #' @export setMethod("initialize", signature = "Statement", definition = function(.Object, world, subject, predicate, object, subjectType=as.character(NA), objectType=as.character(NA), datatype_uri=as.character(NA), language=as.character(NA)) { # Ensure that all provided params are not null stopifnot(!is.null(world), !missing(subject), !missing(predicate), !missing(object)) # The subject, predicate and object have all been passed in as characters, so we need to # evaluate them and create appropriate Node objects from them that will be used to # create the statement object. if ( (is.null(subject) || class(subject) == "character") && class(predicate) == "character" && (is.null(object) || class(object) == "character") ) { # If subjectType was not specified, determine the subjectType by inspecting the # subject value if (is.na(subjectType)) { if (is.null(subject)) { subjectType <- "blank" } else if (length(grep("^_:", subject)) == 1) { subjectType <- "blank" } else if (subject == "") { subjectType <- "blank" } else { subjectType <- "uri" } } else if (subjectType != "uri" && subjectType != "blank") { stop(sprintf("Invalid value for subjectType: %s", subjectType)) } # Create the subject Node from the passed in character value, and the # node type that was either passed in or determined from the character value if (is.null(subject)) { subjectNode <- new("Node", world) } else if (subjectType == "blank") { subjectNode <- new("Node", world, blank=subject) } else if (subjectType == "uri") { subjectNode <- new("Node", world, uri=subject) } else { stop(sprintf("Invalid type for subject node: %s", subject)) } # The predicate is always a URI predicateNode <- new("Node", world, uri=predicate) # Determine the type of the object node from the passed in value if (is.na(objectType)) { if (is.null(object)) { objectType <- "blank" } else if (length(grep("^http:", object)) == 1) { objectType <- "uri" } else if (length(grep("^https:", object)) == 1) { objectType <- "uri" } else if (length(grep("^urn:", object)) == 1) { objectType <- "uri" } else if (length(grep("^_:", object)) == 1) { objectType <- "blank" } else if (object == "") { objectType <- "blank" } else if (is.null(object)) { objectType <- "blank" } else { objectType <- "literal" } } else if (objectType != "uri" && objectType != "literal" && objectType != "blank") { stop(sprintf("Invalid value for objectType: %s", objectType)) } # Create the object Node from the passed in character value, and the type # that was either passed in or determined from the argument value if (is.null(object)) { objectNode <- new("Node", world) } else if (objectType == "blank") { objectNode <- new("Node", world, blank=object) } else if (objectType == "uri") { objectNode <- new("Node", world, uri=object) } else { if(is.na(language)) language <- "" if(is.na(datatype_uri)) { objectNode <- new("Node", world, literal=object, language=language) } else { objectNode <- new("Node", world, literal=object, datatype_uri=datatype_uri, language=language) } } .Object@librdf_statement <- librdf_new_statement_from_nodes(world@librdf_world, subjectNode@librdf_node, predicateNode@librdf_node, objectNode@librdf_node); } else { # The subject, predicate and object have all been passed in as Node objects, so create # the statement from these objects directly. if (class(subject) == "Node" && class(predicate) == "Node" && class(object) == "Node") { # Create the underlying redland statement object .Object@librdf_statement <- librdf_new_statement_from_nodes(world@librdf_world, subject@librdf_node, predicate@librdf_node, object@librdf_node); } else { stop(sprintf("Invalid argument types for subject (%s), predicate(%s) or object(%s).", class(subject), class(predicate), class(object))) } } return(.Object) }) #' Return the redland node type for the specified RDF term in a statement #' @description After a Statement object has been created, this method can #' be used to determine the RDF type ("uri", "literal", "blank") that has been #' assigned to the specified RDF term, i.e. "subject", "predicate", "object". #' @rdname getTermType #' @param .Object a Statement object #' @param term the RDF term for which the type will be returned #' @export #' @examples #' world <- new("World") #' subject <- new("Node", blank="_:myid1", world) #' predicate <- new("Node", uri="http://www.example.com/isa", world) #' object <- new("Node", literal="thing", world) #' stmt <- new("Statement", world, subject, predicate, object, world) #' termType <- getTermType(stmt, "predicate") setGeneric("getTermType", function(.Object, term) { standardGeneric("getTermType") }) #' @rdname getTermType setMethod("getTermType", signature("Statement", "character"), function(.Object, term) { if (term != "subject" && term != "predicate" && term != "object") { stop("Must specify \"subject\", \"predicate\", or \"object\" for term") } # Retrieve a pointer to the specified node object from librdf if (term == "subject") { termPtr <- librdf_statement_get_subject(.Object@librdf_statement) } else if (term == "predicate") { termPtr <- librdf_statement_get_predicate(.Object@librdf_statement) } else { termPtr <- librdf_statement_get_object(.Object@librdf_statement) } # Print out the redland node type corresponding to the RDF term type for the specified term if(librdf_node_is_resource(termPtr)) { return("resource") } else if (librdf_node_is_literal(termPtr)) { return("literal") } else if (librdf_node_is_blank(termPtr)) { return("blank") } else { return("unknown") } }) #' Free memory used by a librdf statement #' @details After this method is called, the Statement object is no longer usable and should #' be deleted \code{"rm(statement)"} and a new object created. This method frees #' all resources for the statement, as well as each node in the statement. #' @rdname freeStatement #' @param .Object a Statement object #' @examples #' world <- new("World") #' stmt <- new("Statement", world, subject="http://www.example.com/myevent", #' predicate="http://example.com/occurredAt", #' object="Tue Feb 17 14:05:13 PST 2015") #' # At this point, some operations would be performed with the Statement. #' # See '?redland' for a complete example. #' # When the Statement object is no longer needed, the resources it had allocated can be freed. #' freeStatement(stmt) #' rm(stmt) #' @export setGeneric("freeStatement", function(.Object) { standardGeneric("freeStatement") }) #' @rdname freeStatement setMethod("freeStatement", signature("Statement"), function(.Object) { librdf_free_statement(.Object@librdf_statement) })redland/R/QueryResults.R0000644000176200001440000000637113544500476014715 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title A Redland QueryResults object is used to inspect query results from a Query object. #' @description The QueryResults object contains the RDF statements that were returned from #' a query on an RDF model. #' @slot librdf_query_results A redland query object #' @rdname QueryResults-class #' @aliases QueryResults #' @include redland.R #' @keywords classes #' @export #' @section Methods: #' \itemize{ #' \item{\code{\link{QueryResults-initialize}}}{: Initialize a QueryResults object.} #' \item{\code{\link{freeQueryResults}}}{: Free memory used by a librdf query result.} #' } #' @seealso \code{\link{redland}}{: redland package} setClass("QueryResults", slots = c(librdf_query_results = "_p_librdf_query_results")) #' Initialize the QueryResults object. #' @description The QueryResults object is initialized with the librdf query result from #' return value of \code{'Query.execute()'}. #' @details A QueryResults object is returned by the \code{Query.executeQuery()} method, so typically a user #' does not initialize a QueryResult object by calling \code{new("QueryResult", ...)} #' @rdname QueryResults-initialize #' @aliases QueryResults-initialize #' @param .Object the QueryResults object. #' @param results a librdf query result #' @return the QueryResults object #' @export setMethod("initialize", signature = "QueryResults", definition = function(.Object, results) { .Object@librdf_query_results <- results return(.Object) }) #' Free memory used by a librdf query results #' @description After this method is called, the QueryResults object is no longer usable and should #' be deleted with \code{"rm(query)"}. #' @rdname freeQueryResults #' @param .Object a QueryResults object #' @export setGeneric("freeQueryResults", function(.Object) { standardGeneric("freeQueryResults") }) #' @rdname freeQueryResults setMethod("freeQueryResults", signature("QueryResults"), function(.Object) { # Have to free all of the nodes that were created by the query result that # hold the bound node values if (!is.null(.Object@librdf_query_results) && librdf_query_results_finished(.Object@librdf_query_results) == 0) { num_nodes <- librdf_query_results_get_bindings_count(.Object@librdf_query_results) for (i in 1:num_nodes-1) { binding_name <- librdf_query_results_get_binding_name(.Object@librdf_query_results, i) val = librdf_query_results_get_binding_value(.Object@librdf_query_results, i) if (!is.null.externalptr(val@ref)) { librdf_free_node(val) } } } librdf_free_query_results(.Object@librdf_query_results) }) redland/R/redland.R0000644000176200001440000035526613544500675013652 0ustar liggesusers# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. ## Generated via the command line invocation: ## swig -r -namespace -v -I. -module redland -outdir redland/R -o redland/src/redland.c Redland.i # srun.swg # # # This is the basic code that is needed at run time within R to # provide and define the relevant classes. It is included # automatically in the generated code by copying the contents of # srun.swg into the newly created binding code. # This could be provided as a separate run-time library but this # approach allows the code to to be included directly into the # generated bindings and so removes the need to have and install an # additional library. We may however end up with multiple copies of # this and some confusion at run-time as to which class to use. This # is an issue when we use NAMESPACES as we may need to export certain # classes. ###################################################################### if(length(getClassDef("RSWIGStruct")) == 0) setClass("RSWIGStruct", representation("VIRTUAL")) if(length(getClassDef("ExternalReference")) == 0) # Should be virtual but this means it loses its slots currently #representation("VIRTUAL") setClass("ExternalReference", representation( ref = "externalptr")) if(length(getClassDef("NativeRoutinePointer")) == 0) setClass("NativeRoutinePointer", representation(parameterTypes = "character", returnType = "character", "VIRTUAL"), contains = "ExternalReference") if(length(getClassDef("CRoutinePointer")) == 0) setClass("CRoutinePointer", contains = "NativeRoutinePointer") if(length(getClassDef("EnumerationValue")) == 0) setClass("EnumerationValue", contains = "integer") if(!isGeneric("copyToR")) setGeneric("copyToR", function(value, obj = new(gsub("Ref$", "", class(value)))) standardGeneric("copyToR" )) setGeneric("delete", function(obj) standardGeneric("delete")) SWIG_createNewRef = function(className, ..., append = TRUE) { f = get(paste("new", className, sep = "_"), mode = "function") f(...) } if(!isGeneric("copyToC")) setGeneric("copyToC", function(value, obj = SWIG_createNewRef(class(value))) standardGeneric("copyToC" )) # defineEnumeration = function(name, .values, where = topenv(parent.frame()), suffix = "Value") { # Mirror the class definitions via the E analogous to .__C__ defName = paste(".__E__", name, sep = "") assign(defName, .values, envir = where) if(nchar(suffix)) name = paste(name, suffix, sep = "") setClass(name, contains = "EnumerationValue", where = where) } enumToInteger <- function(name,type) { if (is.character(name)) { ans <- as.integer(get(paste(".__E__", type, sep = ""))[name]) if (is.na(ans)) {warning("enum not found ", name, " ", type)} ans } } enumFromInteger = function(i,type) { itemlist <- get(paste(".__E__", type, sep="")) names(itemlist)[match(i, itemlist)] } coerceIfNotSubclass = function(obj, type) { if(!is(obj, type)) {as(obj, type)} else obj } setClass("SWIGArray", representation(dims = "integer"), contains = "ExternalReference") setMethod("length", "SWIGArray", function(x) x@dims[1]) defineEnumeration("SCopyReferences", .values = c( "FALSE" = 0, "TRUE" = 1, "DEEP" = 2)) assert = function(condition, message = "") { if(!condition) stop(message) TRUE } if(FALSE) { print.SWIGFunction = function(x, ...) { } } ####################################################################### R_SWIG_getCallbackFunctionStack = function() { # No PACKAGE argument as we don't know what the DLL is. .Call("R_SWIG_debug_getCallbackFunctionData") } R_SWIG_addCallbackFunctionStack = function(fun, userData = NULL) { # No PACKAGE argument as we don't know what the DLL is. .Call("R_SWIG_R_pushCallbackFunctionData", fun, userData) } ####################################################################### setClass('_p_librdf_world_s', contains = 'ExternalReference') setClass('_p_librdf_digest_s', contains = 'ExternalReference') setClass('_p_librdf_hash_s', contains = 'ExternalReference') setClass('_p_librdf_uri_s', contains = 'ExternalReference') setClass('_p_librdf_iterator_s', contains = 'ExternalReference') setClass('_p_librdf_node_s', contains = 'ExternalReference') setClass('_p_librdf_statement_s', contains = 'ExternalReference') setClass('_p_librdf_model_s', contains = 'ExternalReference') setClass('_p_librdf_storage_s', contains = 'ExternalReference') setClass('_p_librdf_stream_s', contains = 'ExternalReference') setClass('_p_librdf_parser_s', contains = 'ExternalReference') setClass('_p_librdf_serializer_s', contains = 'ExternalReference') setMethod('[', "ExternalReference", function(x,i,j, ..., drop=TRUE) if (!is.null(x$"__getitem__")) sapply(i, function(n) x$"__getitem__"(i=as.integer(n-1)))) setMethod('[<-' , "ExternalReference", function(x,i,j, ..., value) if (!is.null(x$"__setitem__")) { sapply(1:length(i), function(n) x$"__setitem__"(i=as.integer(i[n]-1), x=value[n])) x }) setAs('ExternalReference', 'character', function(from) {if (!is.null(from$"__str__")) from$"__str__"()}) suppressMessages(suppressWarnings(setMethod('print', 'ExternalReference', function(x) {print(as(x, "character"))}))) # Start of librdf_new_digest `librdf_new_digest` = function(world, name) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); ;ans = .Call('R_swig_librdf_new_digest', world, name, PACKAGE='redland'); ans <- new("_p_librdf_digest_s", ref=ans) ; ans } attr(`librdf_new_digest`, 'returnType') = '_p_librdf_digest_s' attr(`librdf_new_digest`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_new_digest`) = c("SWIGFunction", class('librdf_new_digest')) # Start of librdf_free_digest `librdf_free_digest` = function(digest) { if (inherits(digest, "ExternalReference")) digest = slot(digest,"ref") ;.Call('R_swig_librdf_free_digest', digest, PACKAGE='redland'); } attr(`librdf_free_digest`, 'returnType') = 'void' attr(`librdf_free_digest`, "inputTypes") = c('_p_librdf_digest_s') class(`librdf_free_digest`) = c("SWIGFunction", class('librdf_free_digest')) # Start of librdf_digest_init `librdf_digest_init` = function(digest) { if (inherits(digest, "ExternalReference")) digest = slot(digest,"ref") ;.Call('R_swig_librdf_digest_init', digest, PACKAGE='redland'); } attr(`librdf_digest_init`, 'returnType') = 'void' attr(`librdf_digest_init`, "inputTypes") = c('_p_librdf_digest_s') class(`librdf_digest_init`) = c("SWIGFunction", class('librdf_digest_init')) # Start of librdf_digest_update `librdf_digest_update` = function(digest, buf, length) { if (inherits(digest, "ExternalReference")) digest = slot(digest,"ref") buf = as(buf, "character"); length = as.integer(length); if(length(length) > 1) { warning("using only the first element of length"); }; ;.Call('R_swig_librdf_digest_update', digest, buf, length, PACKAGE='redland'); } attr(`librdf_digest_update`, 'returnType') = 'void' attr(`librdf_digest_update`, "inputTypes") = c('_p_librdf_digest_s', 'character', 'integer') class(`librdf_digest_update`) = c("SWIGFunction", class('librdf_digest_update')) # Start of librdf_digest_update_string `librdf_digest_update_string` = function(digest, string) { if (inherits(digest, "ExternalReference")) digest = slot(digest,"ref") string = as(string, "character"); ;.Call('R_swig_librdf_digest_update_string', digest, string, PACKAGE='redland'); } attr(`librdf_digest_update_string`, 'returnType') = 'void' attr(`librdf_digest_update_string`, "inputTypes") = c('_p_librdf_digest_s', 'character') class(`librdf_digest_update_string`) = c("SWIGFunction", class('librdf_digest_update_string')) # Start of librdf_digest_final `librdf_digest_final` = function(digest) { if (inherits(digest, "ExternalReference")) digest = slot(digest,"ref") ;.Call('R_swig_librdf_digest_final', digest, PACKAGE='redland'); } attr(`librdf_digest_final`, 'returnType') = 'void' attr(`librdf_digest_final`, "inputTypes") = c('_p_librdf_digest_s') class(`librdf_digest_final`) = c("SWIGFunction", class('librdf_digest_final')) # Start of librdf_digest_to_string `librdf_digest_to_string` = function(digest) { if (inherits(digest, "ExternalReference")) digest = slot(digest,"ref") ;.Call('R_swig_librdf_digest_to_string', digest, PACKAGE='redland'); } attr(`librdf_digest_to_string`, 'returnType') = 'character' attr(`librdf_digest_to_string`, "inputTypes") = c('_p_librdf_digest_s') class(`librdf_digest_to_string`) = c("SWIGFunction", class('librdf_digest_to_string')) # Start of librdf_new_hash `librdf_new_hash` = function(world, name) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); ;ans = .Call('R_swig_librdf_new_hash', world, name, PACKAGE='redland'); ans <- new("_p_librdf_hash_s", ref=ans) ; ans } attr(`librdf_new_hash`, 'returnType') = '_p_librdf_hash_s' attr(`librdf_new_hash`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_new_hash`) = c("SWIGFunction", class('librdf_new_hash')) # Start of librdf_new_hash_from_string `librdf_new_hash_from_string` = function(world, name, string) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); string = as(string, "character"); ;ans = .Call('R_swig_librdf_new_hash_from_string', world, name, string, PACKAGE='redland'); ans <- new("_p_librdf_hash_s", ref=ans) ; ans } attr(`librdf_new_hash_from_string`, 'returnType') = '_p_librdf_hash_s' attr(`librdf_new_hash_from_string`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character') class(`librdf_new_hash_from_string`) = c("SWIGFunction", class('librdf_new_hash_from_string')) # Start of librdf_new_hash_from_array_of_strings `librdf_new_hash_from_array_of_strings` = function(world, name, string) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); if (inherits(string, "ExternalReference")) string = slot(string,"ref") ;ans = .Call('R_swig_librdf_new_hash_from_array_of_strings', world, name, string, PACKAGE='redland'); ans <- new("_p_librdf_hash_s", ref=ans) ; ans } attr(`librdf_new_hash_from_array_of_strings`, 'returnType') = '_p_librdf_hash_s' attr(`librdf_new_hash_from_array_of_strings`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character') class(`librdf_new_hash_from_array_of_strings`) = c("SWIGFunction", class('librdf_new_hash_from_array_of_strings')) # Start of librdf_hash_to_string `librdf_hash_to_string` = function(hash, filter) { if (inherits(hash, "ExternalReference")) hash = slot(hash,"ref") if (inherits(filter, "ExternalReference")) filter = slot(filter,"ref") ;.Call('R_swig_librdf_hash_to_string', hash, filter, PACKAGE='redland'); } attr(`librdf_hash_to_string`, 'returnType') = 'character' attr(`librdf_hash_to_string`, "inputTypes") = c('_p_librdf_hash_s', '_p_p_char') class(`librdf_hash_to_string`) = c("SWIGFunction", class('librdf_hash_to_string')) # Start of librdf_free_hash `librdf_free_hash` = function(hash) { if (inherits(hash, "ExternalReference")) hash = slot(hash,"ref") ;.Call('R_swig_librdf_free_hash', hash, PACKAGE='redland'); } attr(`librdf_free_hash`, 'returnType') = 'void' attr(`librdf_free_hash`, "inputTypes") = c('_p_librdf_hash_s') class(`librdf_free_hash`) = c("SWIGFunction", class('librdf_free_hash')) # Start of librdf_new_world `librdf_new_world` = function() { ;ans = .Call('R_swig_librdf_new_world', PACKAGE='redland'); ans <- new("_p_librdf_world_s", ref=ans) ; ans } attr(`librdf_new_world`, 'returnType') = '_p_librdf_world_s' class(`librdf_new_world`) = c("SWIGFunction", class('librdf_new_world')) # Start of librdf_free_world `librdf_free_world` = function(world) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") ;.Call('R_swig_librdf_free_world', world, PACKAGE='redland'); } attr(`librdf_free_world`, 'returnType') = 'void' attr(`librdf_free_world`, "inputTypes") = c('_p_librdf_world_s') class(`librdf_free_world`) = c("SWIGFunction", class('librdf_free_world')) # Start of librdf_world_open `librdf_world_open` = function(world) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") ;.Call('R_swig_librdf_world_open', world, PACKAGE='redland'); } attr(`librdf_world_open`, 'returnType') = 'void' attr(`librdf_world_open`, "inputTypes") = c('_p_librdf_world_s') class(`librdf_world_open`) = c("SWIGFunction", class('librdf_world_open')) # Start of librdf_world_get_feature `librdf_world_get_feature` = function(world, feature) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") ;ans = .Call('R_swig_librdf_world_get_feature', world, feature, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_world_get_feature`, 'returnType') = '_p_librdf_node_s' attr(`librdf_world_get_feature`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_uri_s') class(`librdf_world_get_feature`) = c("SWIGFunction", class('librdf_world_get_feature')) # Start of librdf_world_set_feature `librdf_world_set_feature` = function(world, feature, value, .copy = FALSE) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") if (inherits(value, "ExternalReference")) value = slot(value,"ref") ;.Call('R_swig_librdf_world_set_feature', world, feature, value, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_world_set_feature`, 'returnType') = 'integer' attr(`librdf_world_set_feature`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_uri_s', '_p_librdf_node_s') class(`librdf_world_set_feature`) = c("SWIGFunction", class('librdf_world_set_feature')) # Start of librdf_parser_get_accept_header `librdf_parser_get_accept_header` = function(parser) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") ;.Call('R_swig_librdf_parser_get_accept_header', parser, PACKAGE='redland'); } attr(`librdf_parser_get_accept_header`, 'returnType') = 'character' attr(`librdf_parser_get_accept_header`, "inputTypes") = c('_p_librdf_parser_s') class(`librdf_parser_get_accept_header`) = c("SWIGFunction", class('librdf_parser_get_accept_header')) # Start of librdf_world_set_logger `librdf_world_set_logger` = function(world, user_data, log_handler) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(user_data, "ExternalReference")) user_data = slot(user_data,"ref") if (inherits(log_handler, "ExternalReference")) log_handler = slot(log_handler,"ref") ;.Call('R_swig_librdf_world_set_logger', world, user_data, log_handler, PACKAGE='redland'); } attr(`librdf_world_set_logger`, 'returnType') = 'void' attr(`librdf_world_set_logger`, "inputTypes") = c('_p_librdf_world_s', '_p_void', '_p_librdf_log_func') class(`librdf_world_set_logger`) = c("SWIGFunction", class('librdf_world_set_logger')) # Start of librdf_free_iterator `librdf_free_iterator` = function(s_arg1) { if (inherits(s_arg1, "ExternalReference")) s_arg1 = slot(s_arg1,"ref") ;.Call('R_swig_librdf_free_iterator', s_arg1, PACKAGE='redland'); } attr(`librdf_free_iterator`, 'returnType') = 'void' attr(`librdf_free_iterator`, "inputTypes") = c('_p_librdf_iterator_s') class(`librdf_free_iterator`) = c("SWIGFunction", class('librdf_free_iterator')) # Start of librdf_iterator_end `librdf_iterator_end` = function(iterator, .copy = FALSE) { if (inherits(iterator, "ExternalReference")) iterator = slot(iterator,"ref") ;.Call('R_swig_librdf_iterator_end', iterator, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_iterator_end`, 'returnType') = 'integer' attr(`librdf_iterator_end`, "inputTypes") = c('_p_librdf_iterator_s') class(`librdf_iterator_end`) = c("SWIGFunction", class('librdf_iterator_end')) # Start of librdf_iterator_get_object `librdf_iterator_get_object` = function(iterator) { if (inherits(iterator, "ExternalReference")) iterator = slot(iterator,"ref") ;ans = .Call('R_swig_librdf_iterator_get_object', iterator, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_iterator_get_object`, 'returnType') = '_p_librdf_node_s' attr(`librdf_iterator_get_object`, "inputTypes") = c('_p_librdf_iterator_s') class(`librdf_iterator_get_object`) = c("SWIGFunction", class('librdf_iterator_get_object')) # Start of librdf_iterator_get_context `librdf_iterator_get_context` = function(iterator) { if (inherits(iterator, "ExternalReference")) iterator = slot(iterator,"ref") ;ans = .Call('R_swig_librdf_iterator_get_context', iterator, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_iterator_get_context`, 'returnType') = '_p_librdf_node_s' attr(`librdf_iterator_get_context`, "inputTypes") = c('_p_librdf_iterator_s') class(`librdf_iterator_get_context`) = c("SWIGFunction", class('librdf_iterator_get_context')) # Start of librdf_iterator_next `librdf_iterator_next` = function(iterator, .copy = FALSE) { if (inherits(iterator, "ExternalReference")) iterator = slot(iterator,"ref") ;.Call('R_swig_librdf_iterator_next', iterator, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_iterator_next`, 'returnType') = 'integer' attr(`librdf_iterator_next`, "inputTypes") = c('_p_librdf_iterator_s') class(`librdf_iterator_next`) = c("SWIGFunction", class('librdf_iterator_next')) # Start of librdf_new_uri `librdf_new_uri` = function(world, string) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") string = as(string, "character"); ;ans = .Call('R_swig_librdf_new_uri', world, string, PACKAGE='redland'); ans <- new("_p_librdf_uri_s", ref=ans) ; ans } attr(`librdf_new_uri`, 'returnType') = '_p_librdf_uri_s' attr(`librdf_new_uri`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_new_uri`) = c("SWIGFunction", class('librdf_new_uri')) # Start of librdf_new_uri_from_uri `librdf_new_uri_from_uri` = function(uri) { if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") ;ans = .Call('R_swig_librdf_new_uri_from_uri', uri, PACKAGE='redland'); ans <- new("_p_librdf_uri_s", ref=ans) ; ans } attr(`librdf_new_uri_from_uri`, 'returnType') = '_p_librdf_uri_s' attr(`librdf_new_uri_from_uri`, "inputTypes") = c('_p_librdf_uri_s') class(`librdf_new_uri_from_uri`) = c("SWIGFunction", class('librdf_new_uri_from_uri')) # Start of librdf_new_uri_from_filename `librdf_new_uri_from_filename` = function(world, filename) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") filename = as(filename, "character"); ;ans = .Call('R_swig_librdf_new_uri_from_filename', world, filename, PACKAGE='redland'); ans <- new("_p_librdf_uri_s", ref=ans) ; ans } attr(`librdf_new_uri_from_filename`, 'returnType') = '_p_librdf_uri_s' attr(`librdf_new_uri_from_filename`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_new_uri_from_filename`) = c("SWIGFunction", class('librdf_new_uri_from_filename')) # Start of librdf_free_uri `librdf_free_uri` = function(uri) { if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") ;.Call('R_swig_librdf_free_uri', uri, PACKAGE='redland'); } attr(`librdf_free_uri`, 'returnType') = 'void' attr(`librdf_free_uri`, "inputTypes") = c('_p_librdf_uri_s') class(`librdf_free_uri`) = c("SWIGFunction", class('librdf_free_uri')) # Start of librdf_uri_to_string `librdf_uri_to_string` = function(uri) { if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") ;.Call('R_swig_librdf_uri_to_string', uri, PACKAGE='redland'); } attr(`librdf_uri_to_string`, 'returnType') = 'character' attr(`librdf_uri_to_string`, "inputTypes") = c('_p_librdf_uri_s') class(`librdf_uri_to_string`) = c("SWIGFunction", class('librdf_uri_to_string')) # Start of librdf_uri_equals `librdf_uri_equals` = function(first_uri, second_uri, .copy = FALSE) { if (inherits(first_uri, "ExternalReference")) first_uri = slot(first_uri,"ref") if (inherits(second_uri, "ExternalReference")) second_uri = slot(second_uri,"ref") ;.Call('R_swig_librdf_uri_equals', first_uri, second_uri, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_uri_equals`, 'returnType') = 'integer' attr(`librdf_uri_equals`, "inputTypes") = c('_p_librdf_uri_s', '_p_librdf_uri_s') class(`librdf_uri_equals`) = c("SWIGFunction", class('librdf_uri_equals')) # Start of librdf_uri_compare `librdf_uri_compare` = function(first_uri, second_uri, .copy = FALSE) { if (inherits(first_uri, "ExternalReference")) first_uri = slot(first_uri,"ref") if (inherits(second_uri, "ExternalReference")) second_uri = slot(second_uri,"ref") ;.Call('R_swig_librdf_uri_compare', first_uri, second_uri, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_uri_compare`, 'returnType') = 'integer' attr(`librdf_uri_compare`, "inputTypes") = c('_p_librdf_uri_s', '_p_librdf_uri_s') class(`librdf_uri_compare`) = c("SWIGFunction", class('librdf_uri_compare')) # Start of librdf_new_node `librdf_new_node` = function(world) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") ;ans = .Call('R_swig_librdf_new_node', world, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node`, "inputTypes") = c('_p_librdf_world_s') class(`librdf_new_node`) = c("SWIGFunction", class('librdf_new_node')) # Start of librdf_new_node_from_uri_string `librdf_new_node_from_uri_string` = function(world, string) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") string = as(string, "character"); ;ans = .Call('R_swig_librdf_new_node_from_uri_string', world, string, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_uri_string`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_uri_string`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_new_node_from_uri_string`) = c("SWIGFunction", class('librdf_new_node_from_uri_string')) # Start of librdf_new_node_from_uri `librdf_new_node_from_uri` = function(world, uri) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") ;ans = .Call('R_swig_librdf_new_node_from_uri', world, uri, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_uri`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_uri`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_uri_s') class(`librdf_new_node_from_uri`) = c("SWIGFunction", class('librdf_new_node_from_uri')) # Start of librdf_new_node_from_uri_local_name `librdf_new_node_from_uri_local_name` = function(world, uri, local_name) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") local_name = as(local_name, "character"); ;ans = .Call('R_swig_librdf_new_node_from_uri_local_name', world, uri, local_name, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_uri_local_name`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_uri_local_name`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_uri_s', 'character') class(`librdf_new_node_from_uri_local_name`) = c("SWIGFunction", class('librdf_new_node_from_uri_local_name')) # Start of librdf_new_node_from_normalised_uri_string `librdf_new_node_from_normalised_uri_string` = function(world, uri_string, source_uri, base_uri) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") uri_string = as(uri_string, "character"); if (inherits(source_uri, "ExternalReference")) source_uri = slot(source_uri,"ref") if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") ;ans = .Call('R_swig_librdf_new_node_from_normalised_uri_string', world, uri_string, source_uri, base_uri, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_normalised_uri_string`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_normalised_uri_string`, "inputTypes") = c('_p_librdf_world_s', 'character', '_p_librdf_uri_s', '_p_librdf_uri_s') class(`librdf_new_node_from_normalised_uri_string`) = c("SWIGFunction", class('librdf_new_node_from_normalised_uri_string')) # Start of librdf_new_node_from_literal `librdf_new_node_from_literal` = function(world, string, inStrOrNull, is_wf_xml) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") string = as(string, "character"); inStrOrNull = as(inStrOrNull, "character"); is_wf_xml = as.integer(is_wf_xml); if(length(is_wf_xml) > 1) { warning("using only the first element of is_wf_xml"); }; ;ans = .Call('R_swig_librdf_new_node_from_literal', world, string, inStrOrNull, is_wf_xml, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_literal`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_literal`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character', 'integer') class(`librdf_new_node_from_literal`) = c("SWIGFunction", class('librdf_new_node_from_literal')) # Start of librdf_new_node_from_typed_literal `librdf_new_node_from_typed_literal` = function(world, string, inStrOrNull, inUriOrNull) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") string = as(string, "character"); inStrOrNull = as(inStrOrNull, "character"); if (inherits(inUriOrNull, "ExternalReference")) inUriOrNull = slot(inUriOrNull,"ref") ;ans = .Call('R_swig_librdf_new_node_from_typed_literal', world, string, inStrOrNull, inUriOrNull, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_typed_literal`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_typed_literal`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character', '_p_librdf_uri_s') class(`librdf_new_node_from_typed_literal`) = c("SWIGFunction", class('librdf_new_node_from_typed_literal')) # Start of librdf_new_node_from_node `librdf_new_node_from_node` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;ans = .Call('R_swig_librdf_new_node_from_node', node, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_node`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_node`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_new_node_from_node`) = c("SWIGFunction", class('librdf_new_node_from_node')) # Start of librdf_new_node_from_blank_identifier `librdf_new_node_from_blank_identifier` = function(world, inStrOrNull) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") inStrOrNull = as(inStrOrNull, "character"); ;ans = .Call('R_swig_librdf_new_node_from_blank_identifier', world, inStrOrNull, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_new_node_from_blank_identifier`, 'returnType') = '_p_librdf_node_s' attr(`librdf_new_node_from_blank_identifier`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_new_node_from_blank_identifier`) = c("SWIGFunction", class('librdf_new_node_from_blank_identifier')) # Start of librdf_free_node `librdf_free_node` = function(r) { if (inherits(r, "ExternalReference")) r = slot(r,"ref") ;.Call('R_swig_librdf_free_node', r, PACKAGE='redland'); } attr(`librdf_free_node`, 'returnType') = 'void' attr(`librdf_free_node`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_free_node`) = c("SWIGFunction", class('librdf_free_node')) # Start of librdf_node_get_uri `librdf_node_get_uri` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;ans = .Call('R_swig_librdf_node_get_uri', node, PACKAGE='redland'); ans <- new("_p_librdf_uri_s", ref=ans) ; ans } attr(`librdf_node_get_uri`, 'returnType') = '_p_librdf_uri_s' attr(`librdf_node_get_uri`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_uri`) = c("SWIGFunction", class('librdf_node_get_uri')) # Start of librdf_node_get_type `librdf_node_get_type` = function(node, .copy = FALSE) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_type', node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_get_type`, 'returnType') = 'integer' attr(`librdf_node_get_type`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_type`) = c("SWIGFunction", class('librdf_node_get_type')) # Start of librdf_node_get_literal_value `librdf_node_get_literal_value` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_literal_value', node, PACKAGE='redland'); } attr(`librdf_node_get_literal_value`, 'returnType') = 'character' attr(`librdf_node_get_literal_value`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_literal_value`) = c("SWIGFunction", class('librdf_node_get_literal_value')) # Start of librdf_node_get_literal_value_as_latin1 `librdf_node_get_literal_value_as_latin1` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_literal_value_as_latin1', node, PACKAGE='redland'); } attr(`librdf_node_get_literal_value_as_latin1`, 'returnType') = 'character' attr(`librdf_node_get_literal_value_as_latin1`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_literal_value_as_latin1`) = c("SWIGFunction", class('librdf_node_get_literal_value_as_latin1')) # Start of librdf_node_get_literal_value_language `librdf_node_get_literal_value_language` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_literal_value_language', node, PACKAGE='redland'); } attr(`librdf_node_get_literal_value_language`, 'returnType') = 'character' attr(`librdf_node_get_literal_value_language`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_literal_value_language`) = c("SWIGFunction", class('librdf_node_get_literal_value_language')) # Start of librdf_node_get_literal_value_datatype_uri `librdf_node_get_literal_value_datatype_uri` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;ans = .Call('R_swig_librdf_node_get_literal_value_datatype_uri', node, PACKAGE='redland'); ans <- new("_p_librdf_uri_s", ref=ans) ; ans } attr(`librdf_node_get_literal_value_datatype_uri`, 'returnType') = '_p_librdf_uri_s' attr(`librdf_node_get_literal_value_datatype_uri`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_literal_value_datatype_uri`) = c("SWIGFunction", class('librdf_node_get_literal_value_datatype_uri')) # Start of librdf_node_get_literal_value_is_wf_xml `librdf_node_get_literal_value_is_wf_xml` = function(node, .copy = FALSE) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_literal_value_is_wf_xml', node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_get_literal_value_is_wf_xml`, 'returnType') = 'integer' attr(`librdf_node_get_literal_value_is_wf_xml`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_literal_value_is_wf_xml`) = c("SWIGFunction", class('librdf_node_get_literal_value_is_wf_xml')) # Start of librdf_node_get_li_ordinal `librdf_node_get_li_ordinal` = function(node, .copy = FALSE) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_li_ordinal', node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_get_li_ordinal`, 'returnType') = 'integer' attr(`librdf_node_get_li_ordinal`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_li_ordinal`) = c("SWIGFunction", class('librdf_node_get_li_ordinal')) # Start of librdf_node_get_blank_identifier `librdf_node_get_blank_identifier` = function(node) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_get_blank_identifier', node, PACKAGE='redland'); } attr(`librdf_node_get_blank_identifier`, 'returnType') = 'character' attr(`librdf_node_get_blank_identifier`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_get_blank_identifier`) = c("SWIGFunction", class('librdf_node_get_blank_identifier')) # Start of librdf_node_is_resource `librdf_node_is_resource` = function(node, .copy = FALSE) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_is_resource', node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_is_resource`, 'returnType') = 'integer' attr(`librdf_node_is_resource`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_is_resource`) = c("SWIGFunction", class('librdf_node_is_resource')) # Start of librdf_node_is_literal `librdf_node_is_literal` = function(node, .copy = FALSE) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_is_literal', node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_is_literal`, 'returnType') = 'integer' attr(`librdf_node_is_literal`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_is_literal`) = c("SWIGFunction", class('librdf_node_is_literal')) # Start of librdf_node_is_blank `librdf_node_is_blank` = function(node, .copy = FALSE) { if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;.Call('R_swig_librdf_node_is_blank', node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_is_blank`, 'returnType') = 'integer' attr(`librdf_node_is_blank`, "inputTypes") = c('_p_librdf_node_s') class(`librdf_node_is_blank`) = c("SWIGFunction", class('librdf_node_is_blank')) # Start of librdf_node_equals `librdf_node_equals` = function(first_node, second_node, .copy = FALSE) { if (inherits(first_node, "ExternalReference")) first_node = slot(first_node,"ref") if (inherits(second_node, "ExternalReference")) second_node = slot(second_node,"ref") ;.Call('R_swig_librdf_node_equals', first_node, second_node, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_node_equals`, 'returnType') = 'integer' attr(`librdf_node_equals`, "inputTypes") = c('_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_node_equals`) = c("SWIGFunction", class('librdf_node_equals')) # Start of librdf_new_statement `librdf_new_statement` = function(world) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") ;ans = .Call('R_swig_librdf_new_statement', world, PACKAGE='redland'); ans <- new("_p_librdf_statement_s", ref=ans) ; ans } attr(`librdf_new_statement`, 'returnType') = '_p_librdf_statement_s' attr(`librdf_new_statement`, "inputTypes") = c('_p_librdf_world_s') class(`librdf_new_statement`) = c("SWIGFunction", class('librdf_new_statement')) # Start of librdf_new_statement_from_statement `librdf_new_statement_from_statement` = function(statement) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;ans = .Call('R_swig_librdf_new_statement_from_statement', statement, PACKAGE='redland'); ans <- new("_p_librdf_statement_s", ref=ans) ; ans } attr(`librdf_new_statement_from_statement`, 'returnType') = '_p_librdf_statement_s' attr(`librdf_new_statement_from_statement`, "inputTypes") = c('_p_librdf_statement_s') class(`librdf_new_statement_from_statement`) = c("SWIGFunction", class('librdf_new_statement_from_statement')) # Start of librdf_new_statement_from_nodes `librdf_new_statement_from_nodes` = function(world, subject, predicate, object) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(subject, "ExternalReference")) subject = slot(subject,"ref") if (inherits(predicate, "ExternalReference")) predicate = slot(predicate,"ref") if (inherits(object, "ExternalReference")) object = slot(object,"ref") ;ans = .Call('R_swig_librdf_new_statement_from_nodes', world, subject, predicate, object, PACKAGE='redland'); ans <- new("_p_librdf_statement_s", ref=ans) ; ans } attr(`librdf_new_statement_from_nodes`, 'returnType') = '_p_librdf_statement_s' attr(`librdf_new_statement_from_nodes`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_node_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_new_statement_from_nodes`) = c("SWIGFunction", class('librdf_new_statement_from_nodes')) # Start of librdf_free_statement `librdf_free_statement` = function(statement) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_free_statement', statement, PACKAGE='redland'); } attr(`librdf_free_statement`, 'returnType') = 'void' attr(`librdf_free_statement`, "inputTypes") = c('_p_librdf_statement_s') class(`librdf_free_statement`) = c("SWIGFunction", class('librdf_free_statement')) # Start of librdf_statement_get_subject `librdf_statement_get_subject` = function(statement) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;ans = .Call('R_swig_librdf_statement_get_subject', statement, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_statement_get_subject`, 'returnType') = '_p_librdf_node_s' attr(`librdf_statement_get_subject`, "inputTypes") = c('_p_librdf_statement_s') class(`librdf_statement_get_subject`) = c("SWIGFunction", class('librdf_statement_get_subject')) # Start of librdf_statement_set_subject `librdf_statement_set_subject` = function(statement, subject) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") if (inherits(subject, "ExternalReference")) subject = slot(subject,"ref") ;.Call('R_swig_librdf_statement_set_subject', statement, subject, PACKAGE='redland'); } attr(`librdf_statement_set_subject`, 'returnType') = 'void' attr(`librdf_statement_set_subject`, "inputTypes") = c('_p_librdf_statement_s', '_p_librdf_node_s') class(`librdf_statement_set_subject`) = c("SWIGFunction", class('librdf_statement_set_subject')) # Start of librdf_statement_get_predicate `librdf_statement_get_predicate` = function(statement) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;ans = .Call('R_swig_librdf_statement_get_predicate', statement, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_statement_get_predicate`, 'returnType') = '_p_librdf_node_s' attr(`librdf_statement_get_predicate`, "inputTypes") = c('_p_librdf_statement_s') class(`librdf_statement_get_predicate`) = c("SWIGFunction", class('librdf_statement_get_predicate')) # Start of librdf_statement_set_predicate `librdf_statement_set_predicate` = function(statement, predicate) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") if (inherits(predicate, "ExternalReference")) predicate = slot(predicate,"ref") ;.Call('R_swig_librdf_statement_set_predicate', statement, predicate, PACKAGE='redland'); } attr(`librdf_statement_set_predicate`, 'returnType') = 'void' attr(`librdf_statement_set_predicate`, "inputTypes") = c('_p_librdf_statement_s', '_p_librdf_node_s') class(`librdf_statement_set_predicate`) = c("SWIGFunction", class('librdf_statement_set_predicate')) # Start of librdf_statement_get_object `librdf_statement_get_object` = function(statement) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;ans = .Call('R_swig_librdf_statement_get_object', statement, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_statement_get_object`, 'returnType') = '_p_librdf_node_s' attr(`librdf_statement_get_object`, "inputTypes") = c('_p_librdf_statement_s') class(`librdf_statement_get_object`) = c("SWIGFunction", class('librdf_statement_get_object')) # Start of librdf_statement_set_object `librdf_statement_set_object` = function(statement, object) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") if (inherits(object, "ExternalReference")) object = slot(object,"ref") ;.Call('R_swig_librdf_statement_set_object', statement, object, PACKAGE='redland'); } attr(`librdf_statement_set_object`, 'returnType') = 'void' attr(`librdf_statement_set_object`, "inputTypes") = c('_p_librdf_statement_s', '_p_librdf_node_s') class(`librdf_statement_set_object`) = c("SWIGFunction", class('librdf_statement_set_object')) # Start of librdf_statement_equals `librdf_statement_equals` = function(statement1, statement2, .copy = FALSE) { if (inherits(statement1, "ExternalReference")) statement1 = slot(statement1,"ref") if (inherits(statement2, "ExternalReference")) statement2 = slot(statement2,"ref") ;.Call('R_swig_librdf_statement_equals', statement1, statement2, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_statement_equals`, 'returnType') = 'integer' attr(`librdf_statement_equals`, "inputTypes") = c('_p_librdf_statement_s', '_p_librdf_statement_s') class(`librdf_statement_equals`) = c("SWIGFunction", class('librdf_statement_equals')) # Start of librdf_statement_match `librdf_statement_match` = function(statement, partial_statement, .copy = FALSE) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") if (inherits(partial_statement, "ExternalReference")) partial_statement = slot(partial_statement,"ref") ;.Call('R_swig_librdf_statement_match', statement, partial_statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_statement_match`, 'returnType') = 'integer' attr(`librdf_statement_match`, "inputTypes") = c('_p_librdf_statement_s', '_p_librdf_statement_s') class(`librdf_statement_match`) = c("SWIGFunction", class('librdf_statement_match')) # Start of librdf_statement_is_complete `librdf_statement_is_complete` = function(statement, .copy = FALSE) { if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_statement_is_complete', statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_statement_is_complete`, 'returnType') = 'integer' attr(`librdf_statement_is_complete`, "inputTypes") = c('_p_librdf_statement_s') class(`librdf_statement_is_complete`) = c("SWIGFunction", class('librdf_statement_is_complete')) # Start of librdf_new_model `librdf_new_model` = function(world, storage, options_string) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(storage, "ExternalReference")) storage = slot(storage,"ref") options_string = as(options_string, "character"); ;ans = .Call('R_swig_librdf_new_model', world, storage, options_string, PACKAGE='redland'); ans <- new("_p_librdf_model_s", ref=ans) ; ans } attr(`librdf_new_model`, 'returnType') = '_p_librdf_model_s' attr(`librdf_new_model`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_storage_s', 'character') class(`librdf_new_model`) = c("SWIGFunction", class('librdf_new_model')) # Start of librdf_new_model_with_options `librdf_new_model_with_options` = function(world, storage, options) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") if (inherits(storage, "ExternalReference")) storage = slot(storage,"ref") if (inherits(options, "ExternalReference")) options = slot(options,"ref") ;ans = .Call('R_swig_librdf_new_model_with_options', world, storage, options, PACKAGE='redland'); ans <- new("_p_librdf_model_s", ref=ans) ; ans } attr(`librdf_new_model_with_options`, 'returnType') = '_p_librdf_model_s' attr(`librdf_new_model_with_options`, "inputTypes") = c('_p_librdf_world_s', '_p_librdf_storage_s', '_p_librdf_hash_s') class(`librdf_new_model_with_options`) = c("SWIGFunction", class('librdf_new_model_with_options')) # Start of librdf_new_model_from_model `librdf_new_model_from_model` = function(model) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;ans = .Call('R_swig_librdf_new_model_from_model', model, PACKAGE='redland'); ans <- new("_p_librdf_model_s", ref=ans) ; ans } attr(`librdf_new_model_from_model`, 'returnType') = '_p_librdf_model_s' attr(`librdf_new_model_from_model`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_new_model_from_model`) = c("SWIGFunction", class('librdf_new_model_from_model')) # Start of librdf_free_model `librdf_free_model` = function(model) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_free_model', model, PACKAGE='redland'); } attr(`librdf_free_model`, 'returnType') = 'void' attr(`librdf_free_model`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_free_model`) = c("SWIGFunction", class('librdf_free_model')) # Start of librdf_model_size `librdf_model_size` = function(model, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_model_size', model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_size`, 'returnType') = 'integer' attr(`librdf_model_size`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_size`) = c("SWIGFunction", class('librdf_model_size')) # Start of librdf_model_add `librdf_model_add` = function(model, subject, predicate, object, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(subject, "ExternalReference")) subject = slot(subject,"ref") if (inherits(predicate, "ExternalReference")) predicate = slot(predicate,"ref") if (inherits(object, "ExternalReference")) object = slot(object,"ref") ;.Call('R_swig_librdf_model_add', model, subject, predicate, object, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_add`, 'returnType') = 'integer' attr(`librdf_model_add`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_add`) = c("SWIGFunction", class('librdf_model_add')) # Start of librdf_model_add_string_literal_statement `librdf_model_add_string_literal_statement` = function(model, subject, predicate, literal, inStrOrNull, is_wf_xml, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(subject, "ExternalReference")) subject = slot(subject,"ref") if (inherits(predicate, "ExternalReference")) predicate = slot(predicate,"ref") literal = as(literal, "character"); inStrOrNull = as(inStrOrNull, "character"); is_wf_xml = as.integer(is_wf_xml); if(length(is_wf_xml) > 1) { warning("using only the first element of is_wf_xml"); }; ;.Call('R_swig_librdf_model_add_string_literal_statement', model, subject, predicate, literal, inStrOrNull, is_wf_xml, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_add_string_literal_statement`, 'returnType') = 'integer' attr(`librdf_model_add_string_literal_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s', 'character', 'character', 'integer') class(`librdf_model_add_string_literal_statement`) = c("SWIGFunction", class('librdf_model_add_string_literal_statement')) # Start of librdf_model_add_typed_literal_statement `librdf_model_add_typed_literal_statement` = function(model, subject, predicate, string, inStrOrNull, inUriOrNull, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(subject, "ExternalReference")) subject = slot(subject,"ref") if (inherits(predicate, "ExternalReference")) predicate = slot(predicate,"ref") string = as(string, "character"); inStrOrNull = as(inStrOrNull, "character"); if (inherits(inUriOrNull, "ExternalReference")) inUriOrNull = slot(inUriOrNull,"ref") ;.Call('R_swig_librdf_model_add_typed_literal_statement', model, subject, predicate, string, inStrOrNull, inUriOrNull, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_add_typed_literal_statement`, 'returnType') = 'integer' attr(`librdf_model_add_typed_literal_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s', 'character', 'character', '_p_librdf_uri_s') class(`librdf_model_add_typed_literal_statement`) = c("SWIGFunction", class('librdf_model_add_typed_literal_statement')) # Start of librdf_model_add_statement `librdf_model_add_statement` = function(model, statement, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_model_add_statement', model, statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_add_statement`, 'returnType') = 'integer' attr(`librdf_model_add_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_statement_s') class(`librdf_model_add_statement`) = c("SWIGFunction", class('librdf_model_add_statement')) # Start of librdf_model_add_statements `librdf_model_add_statements` = function(model, statement_stream, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(statement_stream, "ExternalReference")) statement_stream = slot(statement_stream,"ref") ;.Call('R_swig_librdf_model_add_statements', model, statement_stream, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_add_statements`, 'returnType') = 'integer' attr(`librdf_model_add_statements`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_stream_s') class(`librdf_model_add_statements`) = c("SWIGFunction", class('librdf_model_add_statements')) # Start of librdf_model_remove_statement `librdf_model_remove_statement` = function(model, statement, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_model_remove_statement', model, statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_remove_statement`, 'returnType') = 'integer' attr(`librdf_model_remove_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_statement_s') class(`librdf_model_remove_statement`) = c("SWIGFunction", class('librdf_model_remove_statement')) # Start of librdf_model_contains_statement `librdf_model_contains_statement` = function(model, statement, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_model_contains_statement', model, statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_contains_statement`, 'returnType') = 'integer' attr(`librdf_model_contains_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_statement_s') class(`librdf_model_contains_statement`) = c("SWIGFunction", class('librdf_model_contains_statement')) # Start of librdf_model_as_stream `librdf_model_as_stream` = function(model) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;ans = .Call('R_swig_librdf_model_as_stream', model, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_model_as_stream`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_model_as_stream`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_as_stream`) = c("SWIGFunction", class('librdf_model_as_stream')) # Start of librdf_model_find_statements `librdf_model_find_statements` = function(model, statement) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;ans = .Call('R_swig_librdf_model_find_statements', model, statement, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_model_find_statements`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_model_find_statements`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_statement_s') class(`librdf_model_find_statements`) = c("SWIGFunction", class('librdf_model_find_statements')) # Start of librdf_model_find_statements_in_context `librdf_model_find_statements_in_context` = function(model, statement, inNodeOrNull) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") if (inherits(inNodeOrNull, "ExternalReference")) inNodeOrNull = slot(inNodeOrNull,"ref") ;ans = .Call('R_swig_librdf_model_find_statements_in_context', model, statement, inNodeOrNull, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_model_find_statements_in_context`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_model_find_statements_in_context`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_statement_s', '_p_librdf_node_s') class(`librdf_model_find_statements_in_context`) = c("SWIGFunction", class('librdf_model_find_statements_in_context')) # Start of librdf_model_get_sources `librdf_model_get_sources` = function(model, arc, target) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(arc, "ExternalReference")) arc = slot(arc,"ref") if (inherits(target, "ExternalReference")) target = slot(target,"ref") ;ans = .Call('R_swig_librdf_model_get_sources', model, arc, target, PACKAGE='redland'); ans <- new("_p_librdf_iterator_s", ref=ans) ; ans } attr(`librdf_model_get_sources`, 'returnType') = '_p_librdf_iterator_s' attr(`librdf_model_get_sources`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_get_sources`) = c("SWIGFunction", class('librdf_model_get_sources')) # Start of librdf_model_get_arcs `librdf_model_get_arcs` = function(model, source, target) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(source, "ExternalReference")) source = slot(source,"ref") if (inherits(target, "ExternalReference")) target = slot(target,"ref") ;ans = .Call('R_swig_librdf_model_get_arcs', model, source, target, PACKAGE='redland'); ans <- new("_p_librdf_iterator_s", ref=ans) ; ans } attr(`librdf_model_get_arcs`, 'returnType') = '_p_librdf_iterator_s' attr(`librdf_model_get_arcs`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_get_arcs`) = c("SWIGFunction", class('librdf_model_get_arcs')) # Start of librdf_model_get_targets `librdf_model_get_targets` = function(model, source, arc) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(source, "ExternalReference")) source = slot(source,"ref") if (inherits(arc, "ExternalReference")) arc = slot(arc,"ref") ;ans = .Call('R_swig_librdf_model_get_targets', model, source, arc, PACKAGE='redland'); ans <- new("_p_librdf_iterator_s", ref=ans) ; ans } attr(`librdf_model_get_targets`, 'returnType') = '_p_librdf_iterator_s' attr(`librdf_model_get_targets`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_get_targets`) = c("SWIGFunction", class('librdf_model_get_targets')) # Start of librdf_model_get_source `librdf_model_get_source` = function(model, arc, target) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(arc, "ExternalReference")) arc = slot(arc,"ref") if (inherits(target, "ExternalReference")) target = slot(target,"ref") ;ans = .Call('R_swig_librdf_model_get_source', model, arc, target, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_model_get_source`, 'returnType') = '_p_librdf_node_s' attr(`librdf_model_get_source`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_get_source`) = c("SWIGFunction", class('librdf_model_get_source')) # Start of librdf_model_get_arc `librdf_model_get_arc` = function(model, source, target) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(source, "ExternalReference")) source = slot(source,"ref") if (inherits(target, "ExternalReference")) target = slot(target,"ref") ;ans = .Call('R_swig_librdf_model_get_arc', model, source, target, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_model_get_arc`, 'returnType') = '_p_librdf_node_s' attr(`librdf_model_get_arc`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_get_arc`) = c("SWIGFunction", class('librdf_model_get_arc')) # Start of librdf_model_get_arcs_out `librdf_model_get_arcs_out` = function(model, node) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;ans = .Call('R_swig_librdf_model_get_arcs_out', model, node, PACKAGE='redland'); ans <- new("_p_librdf_iterator_s", ref=ans) ; ans } attr(`librdf_model_get_arcs_out`, 'returnType') = '_p_librdf_iterator_s' attr(`librdf_model_get_arcs_out`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s') class(`librdf_model_get_arcs_out`) = c("SWIGFunction", class('librdf_model_get_arcs_out')) # Start of librdf_model_get_arcs_in `librdf_model_get_arcs_in` = function(model, node) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(node, "ExternalReference")) node = slot(node,"ref") ;ans = .Call('R_swig_librdf_model_get_arcs_in', model, node, PACKAGE='redland'); ans <- new("_p_librdf_iterator_s", ref=ans) ; ans } attr(`librdf_model_get_arcs_in`, 'returnType') = '_p_librdf_iterator_s' attr(`librdf_model_get_arcs_in`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s') class(`librdf_model_get_arcs_in`) = c("SWIGFunction", class('librdf_model_get_arcs_in')) # Start of librdf_model_has_arc_in `librdf_model_has_arc_in` = function(model, node, property, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(node, "ExternalReference")) node = slot(node,"ref") if (inherits(property, "ExternalReference")) property = slot(property,"ref") ;.Call('R_swig_librdf_model_has_arc_in', model, node, property, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_has_arc_in`, 'returnType') = 'integer' attr(`librdf_model_has_arc_in`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_has_arc_in`) = c("SWIGFunction", class('librdf_model_has_arc_in')) # Start of librdf_model_has_arc_out `librdf_model_has_arc_out` = function(model, node, property, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(node, "ExternalReference")) node = slot(node,"ref") if (inherits(property, "ExternalReference")) property = slot(property,"ref") ;.Call('R_swig_librdf_model_has_arc_out', model, node, property, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_has_arc_out`, 'returnType') = 'integer' attr(`librdf_model_has_arc_out`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_has_arc_out`) = c("SWIGFunction", class('librdf_model_has_arc_out')) # Start of librdf_model_get_target `librdf_model_get_target` = function(model, source, arc) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(source, "ExternalReference")) source = slot(source,"ref") if (inherits(arc, "ExternalReference")) arc = slot(arc,"ref") ;ans = .Call('R_swig_librdf_model_get_target', model, source, arc, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_model_get_target`, 'returnType') = '_p_librdf_node_s' attr(`librdf_model_get_target`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_node_s') class(`librdf_model_get_target`) = c("SWIGFunction", class('librdf_model_get_target')) # Start of librdf_model_context_add_statement `librdf_model_context_add_statement` = function(model, context, statement, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(context, "ExternalReference")) context = slot(context,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_model_context_add_statement', model, context, statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_context_add_statement`, 'returnType') = 'integer' attr(`librdf_model_context_add_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_statement_s') class(`librdf_model_context_add_statement`) = c("SWIGFunction", class('librdf_model_context_add_statement')) # Start of librdf_model_context_add_statements `librdf_model_context_add_statements` = function(model, context, stream, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(context, "ExternalReference")) context = slot(context,"ref") if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;.Call('R_swig_librdf_model_context_add_statements', model, context, stream, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_context_add_statements`, 'returnType') = 'integer' attr(`librdf_model_context_add_statements`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_stream_s') class(`librdf_model_context_add_statements`) = c("SWIGFunction", class('librdf_model_context_add_statements')) # Start of librdf_model_context_remove_statement `librdf_model_context_remove_statement` = function(model, context, statement, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(context, "ExternalReference")) context = slot(context,"ref") if (inherits(statement, "ExternalReference")) statement = slot(statement,"ref") ;.Call('R_swig_librdf_model_context_remove_statement', model, context, statement, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_context_remove_statement`, 'returnType') = 'integer' attr(`librdf_model_context_remove_statement`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s', '_p_librdf_statement_s') class(`librdf_model_context_remove_statement`) = c("SWIGFunction", class('librdf_model_context_remove_statement')) # Start of librdf_model_context_remove_statements `librdf_model_context_remove_statements` = function(model, context, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(context, "ExternalReference")) context = slot(context,"ref") ;.Call('R_swig_librdf_model_context_remove_statements', model, context, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_context_remove_statements`, 'returnType') = 'integer' attr(`librdf_model_context_remove_statements`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s') class(`librdf_model_context_remove_statements`) = c("SWIGFunction", class('librdf_model_context_remove_statements')) # Start of librdf_model_context_as_stream `librdf_model_context_as_stream` = function(model, context) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(context, "ExternalReference")) context = slot(context,"ref") ;ans = .Call('R_swig_librdf_model_context_as_stream', model, context, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_model_context_as_stream`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_model_context_as_stream`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s') class(`librdf_model_context_as_stream`) = c("SWIGFunction", class('librdf_model_context_as_stream')) # Start of librdf_model_sync `librdf_model_sync` = function(model) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_model_sync', model, PACKAGE='redland'); } attr(`librdf_model_sync`, 'returnType') = 'void' attr(`librdf_model_sync`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_sync`) = c("SWIGFunction", class('librdf_model_sync')) # Start of librdf_model_get_contexts `librdf_model_get_contexts` = function(model) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;ans = .Call('R_swig_librdf_model_get_contexts', model, PACKAGE='redland'); ans <- new("_p_librdf_iterator_s", ref=ans) ; ans } attr(`librdf_model_get_contexts`, 'returnType') = '_p_librdf_iterator_s' attr(`librdf_model_get_contexts`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_get_contexts`) = c("SWIGFunction", class('librdf_model_get_contexts')) # Start of librdf_model_contains_context `librdf_model_contains_context` = function(model, context, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(context, "ExternalReference")) context = slot(context,"ref") ;.Call('R_swig_librdf_model_contains_context', model, context, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_contains_context`, 'returnType') = 'integer' attr(`librdf_model_contains_context`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_node_s') class(`librdf_model_contains_context`) = c("SWIGFunction", class('librdf_model_contains_context')) # Start of librdf_model_get_feature `librdf_model_get_feature` = function(model, feature) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") ;ans = .Call('R_swig_librdf_model_get_feature', model, feature, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_model_get_feature`, 'returnType') = '_p_librdf_node_s' attr(`librdf_model_get_feature`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_uri_s') class(`librdf_model_get_feature`) = c("SWIGFunction", class('librdf_model_get_feature')) # Start of librdf_model_set_feature `librdf_model_set_feature` = function(model, feature, value, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") if (inherits(value, "ExternalReference")) value = slot(value,"ref") ;.Call('R_swig_librdf_model_set_feature', model, feature, value, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_set_feature`, 'returnType') = 'integer' attr(`librdf_model_set_feature`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_uri_s', '_p_librdf_node_s') class(`librdf_model_set_feature`) = c("SWIGFunction", class('librdf_model_set_feature')) # Start of librdf_model_load `librdf_model_load` = function(model, uri, name, mime_type, type_uri, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") name = as(name, "character"); mime_type = as(mime_type, "character"); if (inherits(type_uri, "ExternalReference")) type_uri = slot(type_uri,"ref") ;.Call('R_swig_librdf_model_load', model, uri, name, mime_type, type_uri, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_load`, 'returnType') = 'integer' attr(`librdf_model_load`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_uri_s', 'character', 'character', '_p_librdf_uri_s') class(`librdf_model_load`) = c("SWIGFunction", class('librdf_model_load')) # Start of librdf_model_query_execute `librdf_model_query_execute` = function(model, query) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(query, "ExternalReference")) query = slot(query,"ref") ;ans = .Call('R_swig_librdf_model_query_execute', model, query, PACKAGE='redland'); ans <- new("_p_librdf_query_results", ref=ans) ; ans } attr(`librdf_model_query_execute`, 'returnType') = '_p_librdf_query_results' attr(`librdf_model_query_execute`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_query') class(`librdf_model_query_execute`) = c("SWIGFunction", class('librdf_model_query_execute')) # Start of librdf_model_to_string `librdf_model_to_string` = function(model, uri, name, mime_type, inUriOrNull) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") name = as(name, "character"); mime_type = as(mime_type, "character"); if (inherits(inUriOrNull, "ExternalReference")) inUriOrNull = slot(inUriOrNull,"ref") ;.Call('R_swig_librdf_model_to_string', model, uri, name, mime_type, inUriOrNull, PACKAGE='redland'); } attr(`librdf_model_to_string`, 'returnType') = 'character' attr(`librdf_model_to_string`, "inputTypes") = c('_p_librdf_model_s', '_p_librdf_uri_s', 'character', 'character', '_p_librdf_uri_s') class(`librdf_model_to_string`) = c("SWIGFunction", class('librdf_model_to_string')) # Start of librdf_model_transaction_start `librdf_model_transaction_start` = function(model, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_model_transaction_start', model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_transaction_start`, 'returnType') = 'integer' attr(`librdf_model_transaction_start`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_transaction_start`) = c("SWIGFunction", class('librdf_model_transaction_start')) # Start of librdf_model_transaction_commit `librdf_model_transaction_commit` = function(model, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_model_transaction_commit', model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_transaction_commit`, 'returnType') = 'integer' attr(`librdf_model_transaction_commit`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_transaction_commit`) = c("SWIGFunction", class('librdf_model_transaction_commit')) # Start of librdf_model_transaction_rollback `librdf_model_transaction_rollback` = function(model, .copy = FALSE) { if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_model_transaction_rollback', model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_model_transaction_rollback`, 'returnType') = 'integer' attr(`librdf_model_transaction_rollback`, "inputTypes") = c('_p_librdf_model_s') class(`librdf_model_transaction_rollback`) = c("SWIGFunction", class('librdf_model_transaction_rollback')) # Start of librdf_new_storage `librdf_new_storage` = function(world, storage_name, name, options_string) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") storage_name = as(storage_name, "character"); name = as(name, "character"); options_string = as(options_string, "character"); ;ans = .Call('R_swig_librdf_new_storage', world, storage_name, name, options_string, PACKAGE='redland'); ans <- new("_p_librdf_storage_s", ref=ans) ; ans } attr(`librdf_new_storage`, 'returnType') = '_p_librdf_storage_s' attr(`librdf_new_storage`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character', 'character') class(`librdf_new_storage`) = c("SWIGFunction", class('librdf_new_storage')) # Start of librdf_new_storage_from_storage `librdf_new_storage_from_storage` = function(old_storage) { if (inherits(old_storage, "ExternalReference")) old_storage = slot(old_storage,"ref") ;ans = .Call('R_swig_librdf_new_storage_from_storage', old_storage, PACKAGE='redland'); ans <- new("_p_librdf_storage_s", ref=ans) ; ans } attr(`librdf_new_storage_from_storage`, 'returnType') = '_p_librdf_storage_s' attr(`librdf_new_storage_from_storage`, "inputTypes") = c('_p_librdf_storage_s') class(`librdf_new_storage_from_storage`) = c("SWIGFunction", class('librdf_new_storage_from_storage')) # Start of librdf_free_storage `librdf_free_storage` = function(storage) { if (inherits(storage, "ExternalReference")) storage = slot(storage,"ref") ;.Call('R_swig_librdf_free_storage', storage, PACKAGE='redland'); } attr(`librdf_free_storage`, 'returnType') = 'void' attr(`librdf_free_storage`, "inputTypes") = c('_p_librdf_storage_s') class(`librdf_free_storage`) = c("SWIGFunction", class('librdf_free_storage')) # Start of librdf_parser_check_name `librdf_parser_check_name` = function(world, name, .copy = FALSE) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); ;.Call('R_swig_librdf_parser_check_name', world, name, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_parser_check_name`, 'returnType') = 'integer' attr(`librdf_parser_check_name`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_parser_check_name`) = c("SWIGFunction", class('librdf_parser_check_name')) # Start of librdf_new_parser `librdf_new_parser` = function(world, name, mime_type, type_uri) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); mime_type = as(mime_type, "character"); if (inherits(type_uri, "ExternalReference")) type_uri = slot(type_uri,"ref") ;ans = .Call('R_swig_librdf_new_parser', world, name, mime_type, type_uri, PACKAGE='redland'); ans <- new("_p_librdf_parser_s", ref=ans) ; ans } attr(`librdf_new_parser`, 'returnType') = '_p_librdf_parser_s' attr(`librdf_new_parser`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character', '_p_librdf_uri_s') class(`librdf_new_parser`) = c("SWIGFunction", class('librdf_new_parser')) # Start of librdf_free_parser `librdf_free_parser` = function(parser) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") ;.Call('R_swig_librdf_free_parser', parser, PACKAGE='redland'); } attr(`librdf_free_parser`, 'returnType') = 'void' attr(`librdf_free_parser`, "inputTypes") = c('_p_librdf_parser_s') class(`librdf_free_parser`) = c("SWIGFunction", class('librdf_free_parser')) # Start of librdf_parser_parse_as_stream `librdf_parser_parse_as_stream` = function(parser, uri, inUriorNull) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") if (inherits(inUriorNull, "ExternalReference")) inUriorNull = slot(inUriorNull,"ref") ;ans = .Call('R_swig_librdf_parser_parse_as_stream', parser, uri, inUriorNull, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_parser_parse_as_stream`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_parser_parse_as_stream`, "inputTypes") = c('_p_librdf_parser_s', '_p_librdf_uri_s', '_p_librdf_uri_s') class(`librdf_parser_parse_as_stream`) = c("SWIGFunction", class('librdf_parser_parse_as_stream')) # Start of librdf_parser_parse_into_model `librdf_parser_parse_into_model` = function(parser, uri, inUriOrNull, model, .copy = FALSE) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") if (inherits(inUriOrNull, "ExternalReference")) inUriOrNull = slot(inUriOrNull,"ref") if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_parser_parse_into_model', parser, uri, inUriOrNull, model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_parser_parse_into_model`, 'returnType') = 'integer' attr(`librdf_parser_parse_into_model`, "inputTypes") = c('_p_librdf_parser_s', '_p_librdf_uri_s', '_p_librdf_uri_s', '_p_librdf_model_s') class(`librdf_parser_parse_into_model`) = c("SWIGFunction", class('librdf_parser_parse_into_model')) # Start of librdf_parser_parse_string_as_stream `librdf_parser_parse_string_as_stream` = function(parser, string, base_uri) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") string = as(string, "character"); if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") ;ans = .Call('R_swig_librdf_parser_parse_string_as_stream', parser, string, base_uri, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_parser_parse_string_as_stream`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_parser_parse_string_as_stream`, "inputTypes") = c('_p_librdf_parser_s', 'character', '_p_librdf_uri_s') class(`librdf_parser_parse_string_as_stream`) = c("SWIGFunction", class('librdf_parser_parse_string_as_stream')) # Start of librdf_parser_parse_string_into_model `librdf_parser_parse_string_into_model` = function(parser, string, base_uri, model, .copy = FALSE) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") string = as(string, "character"); if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_parser_parse_string_into_model', parser, string, base_uri, model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_parser_parse_string_into_model`, 'returnType') = 'integer' attr(`librdf_parser_parse_string_into_model`, "inputTypes") = c('_p_librdf_parser_s', 'character', '_p_librdf_uri_s', '_p_librdf_model_s') class(`librdf_parser_parse_string_into_model`) = c("SWIGFunction", class('librdf_parser_parse_string_into_model')) # Start of librdf_parser_parse_counted_string_as_stream `librdf_parser_parse_counted_string_as_stream` = function(parser, string, length, base_uri) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") string = as(string, "character"); length = as.integer(length); if(length(length) > 1) { warning("using only the first element of length"); }; if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") ;ans = .Call('R_swig_librdf_parser_parse_counted_string_as_stream', parser, string, length, base_uri, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_parser_parse_counted_string_as_stream`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_parser_parse_counted_string_as_stream`, "inputTypes") = c('_p_librdf_parser_s', 'character', 'integer', '_p_librdf_uri_s') class(`librdf_parser_parse_counted_string_as_stream`) = c("SWIGFunction", class('librdf_parser_parse_counted_string_as_stream')) # Start of librdf_parser_parse_counted_string_into_model `librdf_parser_parse_counted_string_into_model` = function(parser, string, length, base_uri, model, .copy = FALSE) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") string = as(string, "character"); length = as.integer(length); if(length(length) > 1) { warning("using only the first element of length"); }; if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_parser_parse_counted_string_into_model', parser, string, length, base_uri, model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_parser_parse_counted_string_into_model`, 'returnType') = 'integer' attr(`librdf_parser_parse_counted_string_into_model`, "inputTypes") = c('_p_librdf_parser_s', 'character', 'integer', '_p_librdf_uri_s', '_p_librdf_model_s') class(`librdf_parser_parse_counted_string_into_model`) = c("SWIGFunction", class('librdf_parser_parse_counted_string_into_model')) # Start of librdf_parser_get_feature `librdf_parser_get_feature` = function(parser, feature) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") ;ans = .Call('R_swig_librdf_parser_get_feature', parser, feature, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_parser_get_feature`, 'returnType') = '_p_librdf_node_s' attr(`librdf_parser_get_feature`, "inputTypes") = c('_p_librdf_parser_s', '_p_librdf_uri_s') class(`librdf_parser_get_feature`) = c("SWIGFunction", class('librdf_parser_get_feature')) # Start of librdf_parser_set_feature `librdf_parser_set_feature` = function(parser, feature, value, .copy = FALSE) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") if (inherits(value, "ExternalReference")) value = slot(value,"ref") ;.Call('R_swig_librdf_parser_set_feature', parser, feature, value, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_parser_set_feature`, 'returnType') = 'integer' attr(`librdf_parser_set_feature`, "inputTypes") = c('_p_librdf_parser_s', '_p_librdf_uri_s', '_p_librdf_node_s') class(`librdf_parser_set_feature`) = c("SWIGFunction", class('librdf_parser_set_feature')) # Start of librdf_parser_guess_name2 `librdf_parser_guess_name2` = function(world, mime_type, buffer, identifier) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") mime_type = as(mime_type, "character"); buffer = as(buffer, "character"); identifier = as(identifier, "character"); ;.Call('R_swig_librdf_parser_guess_name2', world, mime_type, buffer, identifier, PACKAGE='redland'); } attr(`librdf_parser_guess_name2`, 'returnType') = 'character' attr(`librdf_parser_guess_name2`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character', 'character') class(`librdf_parser_guess_name2`) = c("SWIGFunction", class('librdf_parser_guess_name2')) # Start of librdf_parser_get_namespaces_seen_prefix `librdf_parser_get_namespaces_seen_prefix` = function(parser, offset) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") offset = as.integer(offset); if(length(offset) > 1) { warning("using only the first element of offset"); }; ;.Call('R_swig_librdf_parser_get_namespaces_seen_prefix', parser, offset, PACKAGE='redland'); } attr(`librdf_parser_get_namespaces_seen_prefix`, 'returnType') = 'character' attr(`librdf_parser_get_namespaces_seen_prefix`, "inputTypes") = c('_p_librdf_parser_s', 'integer') class(`librdf_parser_get_namespaces_seen_prefix`) = c("SWIGFunction", class('librdf_parser_get_namespaces_seen_prefix')) # Start of librdf_parser_get_namespaces_seen_uri `librdf_parser_get_namespaces_seen_uri` = function(parser, offset) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") offset = as.integer(offset); if(length(offset) > 1) { warning("using only the first element of offset"); }; ;ans = .Call('R_swig_librdf_parser_get_namespaces_seen_uri', parser, offset, PACKAGE='redland'); ans <- new("_p_librdf_uri_s", ref=ans) ; ans } attr(`librdf_parser_get_namespaces_seen_uri`, 'returnType') = '_p_librdf_uri_s' attr(`librdf_parser_get_namespaces_seen_uri`, "inputTypes") = c('_p_librdf_parser_s', 'integer') class(`librdf_parser_get_namespaces_seen_uri`) = c("SWIGFunction", class('librdf_parser_get_namespaces_seen_uri')) # Start of librdf_parser_get_namespaces_seen_count `librdf_parser_get_namespaces_seen_count` = function(parser, .copy = FALSE) { if (inherits(parser, "ExternalReference")) parser = slot(parser,"ref") ;.Call('R_swig_librdf_parser_get_namespaces_seen_count', parser, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_parser_get_namespaces_seen_count`, 'returnType') = 'integer' attr(`librdf_parser_get_namespaces_seen_count`, "inputTypes") = c('_p_librdf_parser_s') class(`librdf_parser_get_namespaces_seen_count`) = c("SWIGFunction", class('librdf_parser_get_namespaces_seen_count')) # Start of librdf_new_query `librdf_new_query` = function(world, name, uri, query_string, base_uri) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); if (inherits(uri, "ExternalReference")) uri = slot(uri,"ref") query_string = as(query_string, "character"); if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") ;ans = .Call('R_swig_librdf_new_query', world, name, uri, query_string, base_uri, PACKAGE='redland'); ans <- new("_p_librdf_query", ref=ans) ; ans } attr(`librdf_new_query`, 'returnType') = '_p_librdf_query' attr(`librdf_new_query`, "inputTypes") = c('_p_librdf_world_s', 'character', '_p_librdf_uri_s', 'character', '_p_librdf_uri_s') class(`librdf_new_query`) = c("SWIGFunction", class('librdf_new_query')) # Start of librdf_new_query_from_query `librdf_new_query_from_query` = function(old_query) { if (inherits(old_query, "ExternalReference")) old_query = slot(old_query,"ref") ;ans = .Call('R_swig_librdf_new_query_from_query', old_query, PACKAGE='redland'); ans <- new("_p_librdf_query", ref=ans) ; ans } attr(`librdf_new_query_from_query`, 'returnType') = '_p_librdf_query' attr(`librdf_new_query_from_query`, "inputTypes") = c('_p_librdf_query') class(`librdf_new_query_from_query`) = c("SWIGFunction", class('librdf_new_query_from_query')) # Start of librdf_free_query `librdf_free_query` = function(query) { if (inherits(query, "ExternalReference")) query = slot(query,"ref") ;.Call('R_swig_librdf_free_query', query, PACKAGE='redland'); } attr(`librdf_free_query`, 'returnType') = 'void' attr(`librdf_free_query`, "inputTypes") = c('_p_librdf_query') class(`librdf_free_query`) = c("SWIGFunction", class('librdf_free_query')) # Start of librdf_query_execute `librdf_query_execute` = function(query, model) { if (inherits(query, "ExternalReference")) query = slot(query,"ref") if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;ans = .Call('R_swig_librdf_query_execute', query, model, PACKAGE='redland'); ans <- new("_p_librdf_query_results", ref=ans) ; ans } attr(`librdf_query_execute`, 'returnType') = '_p_librdf_query_results' attr(`librdf_query_execute`, "inputTypes") = c('_p_librdf_query', '_p_librdf_model_s') class(`librdf_query_execute`) = c("SWIGFunction", class('librdf_query_execute')) # Start of librdf_query_get_limit `librdf_query_get_limit` = function(query, .copy = FALSE) { if (inherits(query, "ExternalReference")) query = slot(query,"ref") ;.Call('R_swig_librdf_query_get_limit', query, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_get_limit`, 'returnType') = 'integer' attr(`librdf_query_get_limit`, "inputTypes") = c('_p_librdf_query') class(`librdf_query_get_limit`) = c("SWIGFunction", class('librdf_query_get_limit')) # Start of librdf_query_set_limit `librdf_query_set_limit` = function(query, limit, .copy = FALSE) { if (inherits(query, "ExternalReference")) query = slot(query,"ref") limit = as.integer(limit); if(length(limit) > 1) { warning("using only the first element of limit"); }; ;.Call('R_swig_librdf_query_set_limit', query, limit, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_set_limit`, 'returnType') = 'integer' attr(`librdf_query_set_limit`, "inputTypes") = c('_p_librdf_query', 'integer') class(`librdf_query_set_limit`) = c("SWIGFunction", class('librdf_query_set_limit')) # Start of librdf_query_get_offset `librdf_query_get_offset` = function(query, .copy = FALSE) { if (inherits(query, "ExternalReference")) query = slot(query,"ref") ;.Call('R_swig_librdf_query_get_offset', query, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_get_offset`, 'returnType') = 'integer' attr(`librdf_query_get_offset`, "inputTypes") = c('_p_librdf_query') class(`librdf_query_get_offset`) = c("SWIGFunction", class('librdf_query_get_offset')) # Start of librdf_query_set_offset `librdf_query_set_offset` = function(query, offset, .copy = FALSE) { if (inherits(query, "ExternalReference")) query = slot(query,"ref") offset = as.integer(offset); if(length(offset) > 1) { warning("using only the first element of offset"); }; ;.Call('R_swig_librdf_query_set_offset', query, offset, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_set_offset`, 'returnType') = 'integer' attr(`librdf_query_set_offset`, "inputTypes") = c('_p_librdf_query', 'integer') class(`librdf_query_set_offset`) = c("SWIGFunction", class('librdf_query_set_offset')) # Start of librdf_query_results_as_stream `librdf_query_results_as_stream` = function(query_results) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;ans = .Call('R_swig_librdf_query_results_as_stream', query_results, PACKAGE='redland'); ans <- new("_p_librdf_stream_s", ref=ans) ; ans } attr(`librdf_query_results_as_stream`, 'returnType') = '_p_librdf_stream_s' attr(`librdf_query_results_as_stream`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_as_stream`) = c("SWIGFunction", class('librdf_query_results_as_stream')) # Start of librdf_query_results_get_count `librdf_query_results_get_count` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_get_count', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_get_count`, 'returnType') = 'integer' attr(`librdf_query_results_get_count`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_get_count`) = c("SWIGFunction", class('librdf_query_results_get_count')) # Start of librdf_query_results_next `librdf_query_results_next` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_next', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_next`, 'returnType') = 'integer' attr(`librdf_query_results_next`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_next`) = c("SWIGFunction", class('librdf_query_results_next')) # Start of librdf_query_results_finished `librdf_query_results_finished` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_finished', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_finished`, 'returnType') = 'integer' attr(`librdf_query_results_finished`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_finished`) = c("SWIGFunction", class('librdf_query_results_finished')) # Start of librdf_query_results_get_binding_value `librdf_query_results_get_binding_value` = function(query_results, offset) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") offset = as.integer(offset); if(length(offset) > 1) { warning("using only the first element of offset"); }; ;ans = .Call('R_swig_librdf_query_results_get_binding_value', query_results, offset, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_query_results_get_binding_value`, 'returnType') = '_p_librdf_node_s' attr(`librdf_query_results_get_binding_value`, "inputTypes") = c('_p_librdf_query_results', 'integer') class(`librdf_query_results_get_binding_value`) = c("SWIGFunction", class('librdf_query_results_get_binding_value')) # Start of librdf_query_results_get_binding_name `librdf_query_results_get_binding_name` = function(query_results, offset) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") offset = as.integer(offset); if(length(offset) > 1) { warning("using only the first element of offset"); }; ;.Call('R_swig_librdf_query_results_get_binding_name', query_results, offset, PACKAGE='redland'); } attr(`librdf_query_results_get_binding_name`, 'returnType') = 'character' attr(`librdf_query_results_get_binding_name`, "inputTypes") = c('_p_librdf_query_results', 'integer') class(`librdf_query_results_get_binding_name`) = c("SWIGFunction", class('librdf_query_results_get_binding_name')) # Start of librdf_query_results_get_binding_value_by_name `librdf_query_results_get_binding_value_by_name` = function(query_results, name) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") name = as(name, "character"); ;ans = .Call('R_swig_librdf_query_results_get_binding_value_by_name', query_results, name, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_query_results_get_binding_value_by_name`, 'returnType') = '_p_librdf_node_s' attr(`librdf_query_results_get_binding_value_by_name`, "inputTypes") = c('_p_librdf_query_results', 'character') class(`librdf_query_results_get_binding_value_by_name`) = c("SWIGFunction", class('librdf_query_results_get_binding_value_by_name')) # Start of librdf_query_results_get_bindings_count `librdf_query_results_get_bindings_count` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_get_bindings_count', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_get_bindings_count`, 'returnType') = 'integer' attr(`librdf_query_results_get_bindings_count`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_get_bindings_count`) = c("SWIGFunction", class('librdf_query_results_get_bindings_count')) # Start of librdf_query_results_to_file2 `librdf_query_results_to_file2` = function(query_results, name, mime_type, format_uri, base_uri, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") name = as(name, "character"); mime_type = as(mime_type, "character"); if (inherits(format_uri, "ExternalReference")) format_uri = slot(format_uri,"ref") if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") ;.Call('R_swig_librdf_query_results_to_file2', query_results, name, mime_type, format_uri, base_uri, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_to_file2`, 'returnType') = 'integer' attr(`librdf_query_results_to_file2`, "inputTypes") = c('_p_librdf_query_results', 'character', 'character', '_p_librdf_uri_s', '_p_librdf_uri_s') class(`librdf_query_results_to_file2`) = c("SWIGFunction", class('librdf_query_results_to_file2')) # Start of librdf_query_results_to_string2 `librdf_query_results_to_string2` = function(query_results, name, mime_type, format_uri, base_uri) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") name = as(name, "character"); mime_type = as(mime_type, "character"); if (inherits(format_uri, "ExternalReference")) format_uri = slot(format_uri,"ref") if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") ;.Call('R_swig_librdf_query_results_to_string2', query_results, name, mime_type, format_uri, base_uri, PACKAGE='redland'); } attr(`librdf_query_results_to_string2`, 'returnType') = 'character' attr(`librdf_query_results_to_string2`, "inputTypes") = c('_p_librdf_query_results', 'character', 'character', '_p_librdf_uri_s', '_p_librdf_uri_s') class(`librdf_query_results_to_string2`) = c("SWIGFunction", class('librdf_query_results_to_string2')) # Start of librdf_free_query_results `librdf_free_query_results` = function(query_results) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_free_query_results', query_results, PACKAGE='redland'); } attr(`librdf_free_query_results`, 'returnType') = 'void' attr(`librdf_free_query_results`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_free_query_results`) = c("SWIGFunction", class('librdf_free_query_results')) # Start of librdf_query_results_is_bindings `librdf_query_results_is_bindings` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_is_bindings', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_is_bindings`, 'returnType') = 'integer' attr(`librdf_query_results_is_bindings`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_is_bindings`) = c("SWIGFunction", class('librdf_query_results_is_bindings')) # Start of librdf_query_results_is_boolean `librdf_query_results_is_boolean` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_is_boolean', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_is_boolean`, 'returnType') = 'integer' attr(`librdf_query_results_is_boolean`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_is_boolean`) = c("SWIGFunction", class('librdf_query_results_is_boolean')) # Start of librdf_query_results_is_graph `librdf_query_results_is_graph` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_is_graph', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_is_graph`, 'returnType') = 'integer' attr(`librdf_query_results_is_graph`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_is_graph`) = c("SWIGFunction", class('librdf_query_results_is_graph')) # Start of librdf_query_results_is_syntax `librdf_query_results_is_syntax` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_is_syntax', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_is_syntax`, 'returnType') = 'integer' attr(`librdf_query_results_is_syntax`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_is_syntax`) = c("SWIGFunction", class('librdf_query_results_is_syntax')) # Start of librdf_query_results_get_boolean `librdf_query_results_get_boolean` = function(query_results, .copy = FALSE) { if (inherits(query_results, "ExternalReference")) query_results = slot(query_results,"ref") ;.Call('R_swig_librdf_query_results_get_boolean', query_results, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_query_results_get_boolean`, 'returnType') = 'integer' attr(`librdf_query_results_get_boolean`, "inputTypes") = c('_p_librdf_query_results') class(`librdf_query_results_get_boolean`) = c("SWIGFunction", class('librdf_query_results_get_boolean')) # Start of librdf_serializer_check_name `librdf_serializer_check_name` = function(world, name, .copy = FALSE) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); ;.Call('R_swig_librdf_serializer_check_name', world, name, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_serializer_check_name`, 'returnType') = 'integer' attr(`librdf_serializer_check_name`, "inputTypes") = c('_p_librdf_world_s', 'character') class(`librdf_serializer_check_name`) = c("SWIGFunction", class('librdf_serializer_check_name')) # Start of librdf_new_serializer `librdf_new_serializer` = function(world, name, mime_type, type_uri) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") name = as(name, "character"); mime_type = as(mime_type, "character"); if (inherits(type_uri, "ExternalReference")) type_uri = slot(type_uri,"ref") ;ans = .Call('R_swig_librdf_new_serializer', world, name, mime_type, type_uri, PACKAGE='redland'); ans <- new("_p_librdf_serializer_s", ref=ans) ; ans } attr(`librdf_new_serializer`, 'returnType') = '_p_librdf_serializer_s' attr(`librdf_new_serializer`, "inputTypes") = c('_p_librdf_world_s', 'character', 'character', '_p_librdf_uri_s') class(`librdf_new_serializer`) = c("SWIGFunction", class('librdf_new_serializer')) # Start of librdf_free_serializer `librdf_free_serializer` = function(serializer) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") ;.Call('R_swig_librdf_free_serializer', serializer, PACKAGE='redland'); } attr(`librdf_free_serializer`, 'returnType') = 'void' attr(`librdf_free_serializer`, "inputTypes") = c('_p_librdf_serializer_s') class(`librdf_free_serializer`) = c("SWIGFunction", class('librdf_free_serializer')) # Start of librdf_serializer_serialize_stream_to_file `librdf_serializer_serialize_stream_to_file` = function(serializer, name, base_uri, stream, .copy = FALSE) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") name = as(name, "character"); if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;.Call('R_swig_librdf_serializer_serialize_stream_to_file', serializer, name, base_uri, stream, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_serializer_serialize_stream_to_file`, 'returnType') = 'integer' attr(`librdf_serializer_serialize_stream_to_file`, "inputTypes") = c('_p_librdf_serializer_s', 'character', '_p_librdf_uri_s', '_p_librdf_stream_s') class(`librdf_serializer_serialize_stream_to_file`) = c("SWIGFunction", class('librdf_serializer_serialize_stream_to_file')) # Start of librdf_serializer_serialize_model_to_file `librdf_serializer_serialize_model_to_file` = function(serializer, name, inUriOrNull, model, .copy = FALSE) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") name = as(name, "character"); if (inherits(inUriOrNull, "ExternalReference")) inUriOrNull = slot(inUriOrNull,"ref") if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_serializer_serialize_model_to_file', serializer, name, inUriOrNull, model, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_serializer_serialize_model_to_file`, 'returnType') = 'integer' attr(`librdf_serializer_serialize_model_to_file`, "inputTypes") = c('_p_librdf_serializer_s', 'character', '_p_librdf_uri_s', '_p_librdf_model_s') class(`librdf_serializer_serialize_model_to_file`) = c("SWIGFunction", class('librdf_serializer_serialize_model_to_file')) # Start of librdf_serializer_serialize_stream_to_string `librdf_serializer_serialize_stream_to_string` = function(serializer, base_uri, stream) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") if (inherits(base_uri, "ExternalReference")) base_uri = slot(base_uri,"ref") if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;.Call('R_swig_librdf_serializer_serialize_stream_to_string', serializer, base_uri, stream, PACKAGE='redland'); } attr(`librdf_serializer_serialize_stream_to_string`, 'returnType') = 'character' attr(`librdf_serializer_serialize_stream_to_string`, "inputTypes") = c('_p_librdf_serializer_s', '_p_librdf_uri_s', '_p_librdf_stream_s') class(`librdf_serializer_serialize_stream_to_string`) = c("SWIGFunction", class('librdf_serializer_serialize_stream_to_string')) # Start of librdf_serializer_serialize_model_to_string `librdf_serializer_serialize_model_to_string` = function(serializer, inUriOrNull, model) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") if (inherits(inUriOrNull, "ExternalReference")) inUriOrNull = slot(inUriOrNull,"ref") if (inherits(model, "ExternalReference")) model = slot(model,"ref") ;.Call('R_swig_librdf_serializer_serialize_model_to_string', serializer, inUriOrNull, model, PACKAGE='redland'); } attr(`librdf_serializer_serialize_model_to_string`, 'returnType') = 'character' attr(`librdf_serializer_serialize_model_to_string`, "inputTypes") = c('_p_librdf_serializer_s', '_p_librdf_uri_s', '_p_librdf_model_s') class(`librdf_serializer_serialize_model_to_string`) = c("SWIGFunction", class('librdf_serializer_serialize_model_to_string')) # Start of librdf_serializer_get_feature `librdf_serializer_get_feature` = function(serializer, feature) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") ;ans = .Call('R_swig_librdf_serializer_get_feature', serializer, feature, PACKAGE='redland'); ans <- new("_p_librdf_node_s", ref=ans) ; ans } attr(`librdf_serializer_get_feature`, 'returnType') = '_p_librdf_node_s' attr(`librdf_serializer_get_feature`, "inputTypes") = c('_p_librdf_serializer_s', '_p_librdf_uri_s') class(`librdf_serializer_get_feature`) = c("SWIGFunction", class('librdf_serializer_get_feature')) # Start of librdf_serializer_set_feature `librdf_serializer_set_feature` = function(serializer, feature, value, .copy = FALSE) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") if (inherits(feature, "ExternalReference")) feature = slot(feature,"ref") if (inherits(value, "ExternalReference")) value = slot(value,"ref") ;.Call('R_swig_librdf_serializer_set_feature', serializer, feature, value, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_serializer_set_feature`, 'returnType') = 'integer' attr(`librdf_serializer_set_feature`, "inputTypes") = c('_p_librdf_serializer_s', '_p_librdf_uri_s', '_p_librdf_node_s') class(`librdf_serializer_set_feature`) = c("SWIGFunction", class('librdf_serializer_set_feature')) # Start of librdf_serializer_set_namespace `librdf_serializer_set_namespace` = function(serializer, nspace, prefix, .copy = FALSE) { if (inherits(serializer, "ExternalReference")) serializer = slot(serializer,"ref") if (inherits(nspace, "ExternalReference")) nspace = slot(nspace,"ref") prefix = as(prefix, "character"); ;.Call('R_swig_librdf_serializer_set_namespace', serializer, nspace, prefix, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_serializer_set_namespace`, 'returnType') = 'integer' attr(`librdf_serializer_set_namespace`, "inputTypes") = c('_p_librdf_serializer_s', '_p_librdf_uri_s', 'character') class(`librdf_serializer_set_namespace`) = c("SWIGFunction", class('librdf_serializer_set_namespace')) # Start of librdf_free_stream `librdf_free_stream` = function(stream) { if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;.Call('R_swig_librdf_free_stream', stream, PACKAGE='redland'); } attr(`librdf_free_stream`, 'returnType') = 'void' attr(`librdf_free_stream`, "inputTypes") = c('_p_librdf_stream_s') class(`librdf_free_stream`) = c("SWIGFunction", class('librdf_free_stream')) # Start of librdf_stream_end `librdf_stream_end` = function(stream, .copy = FALSE) { if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;.Call('R_swig_librdf_stream_end', stream, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_stream_end`, 'returnType') = 'integer' attr(`librdf_stream_end`, "inputTypes") = c('_p_librdf_stream_s') class(`librdf_stream_end`) = c("SWIGFunction", class('librdf_stream_end')) # Start of librdf_stream_next `librdf_stream_next` = function(stream, .copy = FALSE) { if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;.Call('R_swig_librdf_stream_next', stream, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_stream_next`, 'returnType') = 'integer' attr(`librdf_stream_next`, "inputTypes") = c('_p_librdf_stream_s') class(`librdf_stream_next`) = c("SWIGFunction", class('librdf_stream_next')) # Start of librdf_stream_get_object `librdf_stream_get_object` = function(stream) { if (inherits(stream, "ExternalReference")) stream = slot(stream,"ref") ;ans = .Call('R_swig_librdf_stream_get_object', stream, PACKAGE='redland'); ans <- new("_p_librdf_statement_s", ref=ans) ; ans } attr(`librdf_stream_get_object`, 'returnType') = '_p_librdf_statement_s' attr(`librdf_stream_get_object`, "inputTypes") = c('_p_librdf_stream_s') class(`librdf_stream_get_object`) = c("SWIGFunction", class('librdf_stream_get_object')) # Start of librdf_log_message_code `librdf_log_message_code` = function(message, .copy = FALSE) { if (inherits(message, "ExternalReference")) message = slot(message,"ref") ;.Call('R_swig_librdf_log_message_code', message, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_log_message_code`, 'returnType') = 'integer' attr(`librdf_log_message_code`, "inputTypes") = c('_p_librdf_log_message') class(`librdf_log_message_code`) = c("SWIGFunction", class('librdf_log_message_code')) # Start of librdf_log_message_level `librdf_log_message_level` = function(message, .copy = FALSE) { if (inherits(message, "ExternalReference")) message = slot(message,"ref") ;.Call('R_swig_librdf_log_message_level', message, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_log_message_level`, 'returnType') = 'integer' attr(`librdf_log_message_level`, "inputTypes") = c('_p_librdf_log_message') class(`librdf_log_message_level`) = c("SWIGFunction", class('librdf_log_message_level')) # Start of librdf_log_message_facility `librdf_log_message_facility` = function(message, .copy = FALSE) { if (inherits(message, "ExternalReference")) message = slot(message,"ref") ;.Call('R_swig_librdf_log_message_facility', message, as.logical(.copy), PACKAGE='redland'); } attr(`librdf_log_message_facility`, 'returnType') = 'integer' attr(`librdf_log_message_facility`, "inputTypes") = c('_p_librdf_log_message') class(`librdf_log_message_facility`) = c("SWIGFunction", class('librdf_log_message_facility')) # Start of librdf_log_message_message `librdf_log_message_message` = function(message) { if (inherits(message, "ExternalReference")) message = slot(message,"ref") ;.Call('R_swig_librdf_log_message_message', message, PACKAGE='redland'); } attr(`librdf_log_message_message`, 'returnType') = 'character' attr(`librdf_log_message_message`, "inputTypes") = c('_p_librdf_log_message') class(`librdf_log_message_message`) = c("SWIGFunction", class('librdf_log_message_message')) # Start of librdf_log_message_locator `librdf_log_message_locator` = function(message) { if (inherits(message, "ExternalReference")) message = slot(message,"ref") ;ans = .Call('R_swig_librdf_log_message_locator', message, PACKAGE='redland'); ans <- new("_p_raptor_locator", ref=ans) ; ans } attr(`librdf_log_message_locator`, 'returnType') = '_p_raptor_locator' attr(`librdf_log_message_locator`, "inputTypes") = c('_p_librdf_log_message') class(`librdf_log_message_locator`) = c("SWIGFunction", class('librdf_log_message_locator')) # Start of raptor_locator_line `raptor_locator_line` = function(locator, .copy = FALSE) { if (inherits(locator, "ExternalReference")) locator = slot(locator,"ref") ;.Call('R_swig_raptor_locator_line', locator, as.logical(.copy), PACKAGE='redland'); } attr(`raptor_locator_line`, 'returnType') = 'integer' attr(`raptor_locator_line`, "inputTypes") = c('_p_raptor_locator') class(`raptor_locator_line`) = c("SWIGFunction", class('raptor_locator_line')) # Start of raptor_locator_column `raptor_locator_column` = function(locator, .copy = FALSE) { if (inherits(locator, "ExternalReference")) locator = slot(locator,"ref") ;.Call('R_swig_raptor_locator_column', locator, as.logical(.copy), PACKAGE='redland'); } attr(`raptor_locator_column`, 'returnType') = 'integer' attr(`raptor_locator_column`, "inputTypes") = c('_p_raptor_locator') class(`raptor_locator_column`) = c("SWIGFunction", class('raptor_locator_column')) # Start of raptor_locator_byte `raptor_locator_byte` = function(locator, .copy = FALSE) { if (inherits(locator, "ExternalReference")) locator = slot(locator,"ref") ;.Call('R_swig_raptor_locator_byte', locator, as.logical(.copy), PACKAGE='redland'); } attr(`raptor_locator_byte`, 'returnType') = 'integer' attr(`raptor_locator_byte`, "inputTypes") = c('_p_raptor_locator') class(`raptor_locator_byte`) = c("SWIGFunction", class('raptor_locator_byte')) # Start of raptor_locator_file `raptor_locator_file` = function(locator) { if (inherits(locator, "ExternalReference")) locator = slot(locator,"ref") ;.Call('R_swig_raptor_locator_file', locator, PACKAGE='redland'); } attr(`raptor_locator_file`, 'returnType') = 'character' attr(`raptor_locator_file`, "inputTypes") = c('_p_raptor_locator') class(`raptor_locator_file`) = c("SWIGFunction", class('raptor_locator_file')) # Start of raptor_locator_uri `raptor_locator_uri` = function(locator) { if (inherits(locator, "ExternalReference")) locator = slot(locator,"ref") ;.Call('R_swig_raptor_locator_uri', locator, PACKAGE='redland'); } attr(`raptor_locator_uri`, 'returnType') = 'character' attr(`raptor_locator_uri`, "inputTypes") = c('_p_raptor_locator') class(`raptor_locator_uri`) = c("SWIGFunction", class('raptor_locator_uri')) # Start of librdf_internal_test_error `librdf_internal_test_error` = function(world) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") ;.Call('R_swig_librdf_internal_test_error', world, PACKAGE='redland'); } attr(`librdf_internal_test_error`, 'returnType') = 'void' attr(`librdf_internal_test_error`, "inputTypes") = c('_p_librdf_world_s') class(`librdf_internal_test_error`) = c("SWIGFunction", class('librdf_internal_test_error')) # Start of librdf_internal_test_warning `librdf_internal_test_warning` = function(world) { if (inherits(world, "ExternalReference")) world = slot(world,"ref") ;.Call('R_swig_librdf_internal_test_warning', world, PACKAGE='redland'); } attr(`librdf_internal_test_warning`, 'returnType') = 'void' attr(`librdf_internal_test_warning`, "inputTypes") = c('_p_librdf_world_s') class(`librdf_internal_test_warning`) = c("SWIGFunction", class('librdf_internal_test_warning')) # Start of librdf_short_copyright_string_get `librdf_short_copyright_string_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_short_copyright_string_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_short_copyright_string_get`, 'returnType') = 'character' class(`librdf_short_copyright_string_get`) = c("SWIGFunction", class('librdf_short_copyright_string_get')) librdf_short_copyright_string = librdf_short_copyright_string_get # Start of librdf_copyright_string_get `librdf_copyright_string_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_copyright_string_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_copyright_string_get`, 'returnType') = 'character' class(`librdf_copyright_string_get`) = c("SWIGFunction", class('librdf_copyright_string_get')) librdf_copyright_string = librdf_copyright_string_get # Start of librdf_version_string_get `librdf_version_string_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_version_string_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_version_string_get`, 'returnType') = 'character' class(`librdf_version_string_get`) = c("SWIGFunction", class('librdf_version_string_get')) librdf_version_string = librdf_version_string_get # Start of librdf_version_major_get `librdf_version_major_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_version_major_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_version_major_get`, 'returnType') = 'integer' class(`librdf_version_major_get`) = c("SWIGFunction", class('librdf_version_major_get')) librdf_version_major = librdf_version_major_get # Start of librdf_version_minor_get `librdf_version_minor_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_version_minor_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_version_minor_get`, 'returnType') = 'integer' class(`librdf_version_minor_get`) = c("SWIGFunction", class('librdf_version_minor_get')) librdf_version_minor = librdf_version_minor_get # Start of librdf_version_release_get `librdf_version_release_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_version_release_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_version_release_get`, 'returnType') = 'integer' class(`librdf_version_release_get`) = c("SWIGFunction", class('librdf_version_release_get')) librdf_version_release = librdf_version_release_get # Start of librdf_version_decimal_get `librdf_version_decimal_get` = function(.copy = FALSE) { ;.Call('R_swig_librdf_version_decimal_get', as.logical(.copy), PACKAGE='redland'); } attr(`librdf_version_decimal_get`, 'returnType') = 'integer' class(`librdf_version_decimal_get`) = c("SWIGFunction", class('librdf_version_decimal_get')) librdf_version_decimal = librdf_version_decimal_get # Start of raptor_version_string_get `raptor_version_string_get` = function(.copy = FALSE) { ;.Call('R_swig_raptor_version_string_get', as.logical(.copy), PACKAGE='redland'); } attr(`raptor_version_string_get`, 'returnType') = 'character' class(`raptor_version_string_get`) = c("SWIGFunction", class('raptor_version_string_get')) raptor_version_string = raptor_version_string_get # Start of raptor_version_major_get `raptor_version_major_get` = function(.copy = FALSE) { ;.Call('R_swig_raptor_version_major_get', as.logical(.copy), PACKAGE='redland'); } attr(`raptor_version_major_get`, 'returnType') = 'integer' class(`raptor_version_major_get`) = c("SWIGFunction", class('raptor_version_major_get')) raptor_version_major = raptor_version_major_get # Start of raptor_version_minor_get `raptor_version_minor_get` = function(.copy = FALSE) { ;.Call('R_swig_raptor_version_minor_get', as.logical(.copy), PACKAGE='redland'); } attr(`raptor_version_minor_get`, 'returnType') = 'integer' class(`raptor_version_minor_get`) = c("SWIGFunction", class('raptor_version_minor_get')) raptor_version_minor = raptor_version_minor_get # Start of raptor_version_release_get `raptor_version_release_get` = function(.copy = FALSE) { ;.Call('R_swig_raptor_version_release_get', as.logical(.copy), PACKAGE='redland'); } attr(`raptor_version_release_get`, 'returnType') = 'integer' class(`raptor_version_release_get`) = c("SWIGFunction", class('raptor_version_release_get')) raptor_version_release = raptor_version_release_get # Start of raptor_version_decimal_get `raptor_version_decimal_get` = function(.copy = FALSE) { ;.Call('R_swig_raptor_version_decimal_get', as.logical(.copy), PACKAGE='redland'); } attr(`raptor_version_decimal_get`, 'returnType') = 'integer' class(`raptor_version_decimal_get`) = c("SWIGFunction", class('raptor_version_decimal_get')) raptor_version_decimal = raptor_version_decimal_get # Start of rasqal_version_string_get `rasqal_version_string_get` = function(.copy = FALSE) { ;.Call('R_swig_rasqal_version_string_get', as.logical(.copy), PACKAGE='redland'); } attr(`rasqal_version_string_get`, 'returnType') = 'character' class(`rasqal_version_string_get`) = c("SWIGFunction", class('rasqal_version_string_get')) rasqal_version_string = rasqal_version_string_get # Start of rasqal_version_major_get `rasqal_version_major_get` = function(.copy = FALSE) { ;.Call('R_swig_rasqal_version_major_get', as.logical(.copy), PACKAGE='redland'); } attr(`rasqal_version_major_get`, 'returnType') = 'integer' class(`rasqal_version_major_get`) = c("SWIGFunction", class('rasqal_version_major_get')) rasqal_version_major = rasqal_version_major_get # Start of rasqal_version_minor_get `rasqal_version_minor_get` = function(.copy = FALSE) { ;.Call('R_swig_rasqal_version_minor_get', as.logical(.copy), PACKAGE='redland'); } attr(`rasqal_version_minor_get`, 'returnType') = 'integer' class(`rasqal_version_minor_get`) = c("SWIGFunction", class('rasqal_version_minor_get')) rasqal_version_minor = rasqal_version_minor_get # Start of rasqal_version_release_get `rasqal_version_release_get` = function(.copy = FALSE) { ;.Call('R_swig_rasqal_version_release_get', as.logical(.copy), PACKAGE='redland'); } attr(`rasqal_version_release_get`, 'returnType') = 'integer' class(`rasqal_version_release_get`) = c("SWIGFunction", class('rasqal_version_release_get')) rasqal_version_release = rasqal_version_release_get # Start of rasqal_version_decimal_get `rasqal_version_decimal_get` = function(.copy = FALSE) { ;.Call('R_swig_rasqal_version_decimal_get', as.logical(.copy), PACKAGE='redland'); } attr(`rasqal_version_decimal_get`, 'returnType') = 'integer' class(`rasqal_version_decimal_get`) = c("SWIGFunction", class('rasqal_version_decimal_get')) rasqal_version_decimal = rasqal_version_decimal_get setClass('_p_librdf_query', contains = 'ExternalReference') setClass('_p_librdf_query_results', contains = 'ExternalReference') redland/R/World.R0000644000176200001440000000500313544473277013314 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title A Redland World object, used to initialize the Redland RDF library. #' @description A World object is the top level object in the Redland RDF library #' implementation, so it contains all other objects needed to process RDF #' Models. #' @slot librdf_world A redland world object #' @aliases World #' @include redland.R #' @keywords classes #' @useDynLib redland, .registration = TRUE #' @section Methods: #' \itemize{ #' \item{\code{\link{World-initialize}}}{: Initialize a World object} #' \item{\code{\link{freeWorld}}}{: Free memory used by a librdf world object} #' } #' @seealso \code{\link{redland}}{: redland package} #' @examples #' world <- new("World") #' @import methods #' @export setClass("World", slots = c(librdf_world = "_p_librdf_world_s")) #' Initialize the World object. #' @rdname World-initialize #' @aliases World-initialize #' @param .Object the World object #' @return the World object #' @export setMethod("initialize", signature = "World", definition = function(.Object) { .Object@librdf_world <- librdf_new_world(); librdf_world_open(.Object@librdf_world) return(.Object) }) #' Free memory used by a librdf world object #' @details After this method is called, the World object is no longer usable and should #' be deleted \code{"rm(world)"} and a new object created. #' @rdname freeWorld #' @param .Object a World object #' @export #' @examples #' world <- new("World") #' # At this point we would perform some operations using the world object. #' # When the world object is no longer needed, we can free the resources it has allocated. #' result <- freeWorld(world) #' rm(world) setGeneric("freeWorld", function(.Object) { standardGeneric("freeWorld") }) #' @rdname freeWorld setMethod("freeWorld", signature("World"), function(.Object) { librdf_free_world(.Object@librdf_world) }) redland/R/Storage.R0000644000176200001440000000621013544473277013632 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' A Redland Storage object #' @slot librdf_storage A redland storage object #' @slot type the storage type to create, i.e. "hashes", "mysql", "postgresql", ... #' @rdname Storage-class #' @aliases Storage #' @include redland.R #' @include World.R #' @keywords classes #' @section Methods: #' \itemize{ #' \item{\code{\link{Storage-initialize}}}{: Initialize a Storage object} #' \item{\code{\link{freeStorage}}}{: Free memory used by a librdf storage object} #' } #' @seealso \code{\link{redland}}{: redland package} #' @export #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") setClass("Storage", slots = c(librdf_storage = "_p_librdf_storage_s", type = "character" )) #' Initialize a Storage object #' @rdname Storage-initialize #' @aliases Storage-initialize #' @param .Object the Storage object #' @param world the World object #' @param type the Redland storage type #' @param name storage instance name #' @param options storage options #' @return the Storage object #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' @export setMethod("initialize", signature = "Storage", definition = function(.Object, world, type="hashes", name="", options="hash-type='memory'") { stopifnot(!is.null(world)) .Object@type <- type .Object@librdf_storage <- librdf_new_storage(world@librdf_world, type, name, options); #librdf_storage_open(.Object@librdf_storage) return(.Object) }) #' Free memory used by a librdf storage object #' @description After this method is called, the Storage object is no longer usable and should #' be deleted \code{"rm(storage)"} and a new object created. #' @rdname freeStorage #' @param .Object a Storage object to free memory for #' @examples #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' # At this point we would perform some operations using the storage object. #' # See '?redland' for a complete example. #' # When the Storage object is no longer needed, the resources it had allocated can be freed. #' status <- freeStorage(storage) #' rm(storage) #' @export setGeneric("freeStorage", function(.Object) { standardGeneric("freeStorage") }) #' @rdname freeStorage setMethod("freeStorage", signature("Storage"), function(.Object) { librdf_free_storage(.Object@librdf_storage) })redland/R/mergeNamespace_roclet.R0000644000176200001440000001236013546424454016510 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2014 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' A custom Roxygen roclet that adds Redland RDF functions to NAMESPACE file generated by Roxygen. #' @description The redland package uses the SWIG (Simplified Wrapper and Interface Generator) to #' create the bindings between the Redland RDF C/C++ libraries and R. SWIG creates a NAMESPACE #' file that contains the function names for the librdf wrapper that it creates, but as of #' swig 3.0.2 this NAMESPACE file is incorrect and will also be overwritten by Roxygen when #' 'roxygenize()' or 'devtools:document()' is called, as the wrapper R code doesn't contain #' Roxygen export annotations used by Roxygen to build the namespace file. #' To allow for building a NAMESPACE file from all programs in the redland package, this roclet #' determines the set of wrapper R functions and adds these to the Roxygen generated NAMESPACE file #' that contains all names from the native R code in the redland package. #' @details The following line must be present in the DESCRIPTION file for this roclet to be #' called automatically when 'roxygen2::roxygenize()' or 'devtools::document()' is called: #' #' Roxygen: list(roclets = c("collate", "rd", "namespace", "mergeNamespace_roclet")) #' #' The 'namespace' roclet must always run before the 'mergeNamespace' roclet. #' @examples #' \dontrun{ #' roxygen2::roxygenize() #' devtools::document() #' } #' @import roxygen2 #' @param x a roclet #' @param ... additional parameters #' @export mergeNamespace_roclet <- function(x, ...) { roclet("mergeNamespace") } #' Roxygen process function for the 'mergeNamespace' roclet #' @description This function is called by the Roxygen2 roxygenize function. #' @details This function loads the Redland interface file and tests each loaded function to #' see if it should be exported via the NAMESPACE file. #' @param x the currently running roclet #' @param blocks the documentation blocks #' @param env the current env #' @param base_path the top directory of the R package #' @param global_options unused by this roclet #' @export roclet_process.roclet_mergeNamespace <- function(x, blocks, env, base_path, global_options = list()) { #on.exit(detach(".redland-temp")) #attach(NULL, name=".redland-temp") tmpEnv <- new.env() # Load the Redland wrapper file into a temporary environment. This file has a definition of # each redland library function that will be made available to the package. filePath <- sprintf("%s/R/redland.R", base_path) #source(filePath, as.environment(".redland-temp")) source(file=filePath, local=as.environment(tmpEnv)) # Check each Redland function to see if it has the SWIGfunction attribute set, and if so # include this function name in the list of functions to be exported #funcList <- ls(as.environment(".redland-temp")) funcList <- ls(as.environment(tmpEnv)) exportFuncList <- list() for (functionName in funcList) { funcType <- attr(get(functionName), "class")[1] if(is.null(funcType)) next if (funcType == "SWIGFunction") { exportFuncList <- c(exportFuncList, functionName) #cat(sprintf("func: %s\n", functionName)) } } rm(list=ls(tmpEnv), envir=tmpEnv) rm(tmpEnv) return(exportFuncList) } #' Roxygen output function that merges a base NAMESPACE file with the Roxygen dynamically created NAMSPACE file #' @description The 'roclet_output' function handles output of the results from the 'roc_process' function. #' This function merges the NAMESPACE file created by the 'namespace' roclet with the list of Redland RDF #' functions determined by the 'roc_process' function. #' @param x the currently running roclet #' @param results the list of items to process that was generated by the roc_process.mergedNamespace function #' @param base_path the base directory path of the package #' @param ... additional parameters #' @export roclet_output.roclet_mergeNamespace <- function(x, results, base_path, ...) { # Get contents of the NAMESPACE file that was created by the "namespace" roclet filePathNS <- file.path(base_path, "NAMESPACE") NScontents <- if (file.exists(filePathNS)) readLines(filePathNS) else "" # Merge the contents of the "namespace" roclet NAMESPACE file with the list # of functions from Redland mergedContents <- NScontents for (tm in results) { tm <- sprintf("export(%s)", tm) mergedContents <- c(mergedContents, tm) } if (identical(mergedContents, NScontents)) { warning("No functions added from Redland wrapper file.") } else { cat("Adding namespace directives for Redland library\n") writeLines(mergedContents, filePathNS) } filePathNS } #' @export roclet_tags.roclet_mergeNamespace <- function(x) { list() } redland/R/redland-package.R0000644000176200001440000001177413544473277015243 0ustar liggesusers# # This work was created by the National Center for Ecological Analysis and Synthesis. # # Copyright 2015 Regents of the University of California # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # #' @title Create, query and write RDF graphs. #' @description The R package \emph{redland} provides methods to create, query and write information stored in the #' Resource Description Framework (RDF). This package is implemented as R scripts that provide an #' R interface (aka "wrapper") to the Redland RDF C libraries. Documentation for the redland R package classes #' and functions are available from the standard R help facility, for example, \code{'help("Node-class")'}, \code{'?getNodeType'}, etc. #' #' An overview of the redland R package is available with the R command: \code{'vignette("redland_overview")'}. #' #' The Redland C library functions are described at \url{http://librdf.org/docs/api/index.html}. #' #' An introduction to RDF can be found at \url{http://www.w3.org/TR/rdf-primer}. #' #' @details #' The redland R package classes and the corresponding Redland C library types are shown in the following table: #' \tabular{llll}{ #' \strong{Concept}\tab \strong{Redland C type}\tab \strong{redland R class}\tab \strong{Purpose}\cr #' Resource / Literal\tab librdf_node\tab \linkS4class{Node}\tab RDF Model & Syntax nodes\cr #' Statement / Triple\tab librdf_statement\tab \linkS4class{Statement}\tab RDF Model & Syntax arcs (statements, triples)\cr #' Model\tab librdf_model\tab \linkS4class{Model}\tab Set of Statements usually held in one Storage.\cr #' Node\tab librdf_node\tab \linkS4class{Node}\tab The subject, predicate or object of a Statement\cr #' Storage\tab librdf_storage\tab \linkS4class{Storage}\tab Storage for Models either persistent or in-memory.\cr #' Parser\tab librdf_parser\tab \linkS4class{Parser}\tab Syntax parsers delivering Stream of Statements or writing to a Model\cr #' Query\tab librdf_query\tab \linkS4class{Query}\tab Querying of an Model delivering a QueryResults\cr #' QueryResults\tab librdf_query_results\tab \linkS4class{QueryResults}\tab Results of applying an Query to a Model giving either variable bindings with Node values or Stream of Statements\cr #' Serializer\tab librdf_serializer\tab \linkS4class{Serializer}\tab Serializes a Model into a syntax such as RDF/XML\cr #' World\tab librdf_world\tab \linkS4class{World}\tab RDF wrapper class handling Redland startup/shutdown\cr #' } #' #' @note #' In order to communicate with the Redland RDF C libraries, the redland R package uses an interface layer that is created #' with the software package \emph{Simplified Wrapper and Interface Generator} (\href{https://github.com/swig/swig}{SWIG}). #' The relationship between the redland R package and the Redland C libraries is: #' #' User script -> redland R package -> SWIG R interface -> Redland C libraries -> RDF data #' #' It is recommended that the redland package R classes be used to interact with RDF, as these higher level classes take care of many of the the #' details of communicating with the Redland C libraries. However, all of the lower level R interface functions generated by SWIG are made available #' by the redland package. These interface functions usually have names beginning with \code{'librdf_'}, \code{'rasqal_'} or \code{'raptor_'} and #' are usually the same name as the underlying C library function. Documentation #' for the R SWIG interface functions can be found via R help i.e. \code{'?librdf_iterator'}. #' #' @examples #' # This example creates the necessary R objects to hold an RDF model and reads #' # in a file that contains RDF/XML statements. This model is then queried for #' # and the query results inspected. #' world <- new("World") #' storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") #' model <- new("Model", world, storage, options="") #' filePath <- system.file("extdata/example.rdf", package="redland") #' parser <- new("Parser", world) #' parseFileIntoModel(parser, world, filePath, model) #' queryString <- paste("PREFIX dc: ", #' "SELECT ?a ?c WHERE { ?a dc:description ?c . }", sep="") #' query <- new("Query", world, queryString, base_uri=NULL, #' query_language="sparql", query_uri=NULL) #' results <- getResults(query, model, "rdfxml") #' #' # When the query object is no longer needed, the resources it had allocated can be freed. #' freeQuery(query) #' rm(query) #' @docType package #' @name redland #' @author Matthew B. Jones (NCEAS) and Peter Slaughter (NCEAS) NULL redland/MD50000644000176200001440000004610113550630073012177 0ustar liggesusersdc320ed66caad31aeb01c44b4c38d49f *DESCRIPTION e85bd917375ce513a2510c922344a4dd *NAMESPACE 76bb24ba5c567d828d2b60e53b2a62bc *NEWS 830a83252828aa818699e1c9df805452 *R/Model.R f829d7e4f29de643b42c145a93040e95 *R/Node.R 545c3ce03b2de8aff87ff289bde4db5b *R/Parser.R a9fbc2b6945fa8b640ee2eccc5c5ed38 *R/Query.R 0876f0a428c068e7392ff6b4d8c18ee7 *R/QueryResults.R f05cb79c737338e1aff218debb503522 *R/Serializer.R 516f886376709a8c4ba1d13b315e82d1 *R/Statement.R 246c04a234124f9a0b773dff9435f898 *R/Storage.R b03bdae3a55fbff808e6011cf2630da1 *R/World.R 4dc5e3968f356c8c1e8f97ae073e3b86 *R/mergeNamespace_roclet.R 00f8bbbc5541af015ce2fda2960617e3 *R/redland-package.R 9699fadf9faf5ac1a06d16a333bcc28e *R/redland.R e2dd1cf7d9d827f8e6833814a2754aaf *R/util.R 79e9ee275b49a630e3904ab2345fc730 *README.md 487cf9b5a3df69f9e7cbcb1fb7091fdb *build/vignette.rds 6071edd604dbeb75308cfbedc7790398 *cleanup 2927621f7e992a495b5fd2946d1c7651 *configure d41d8cd98f00b204e9800998ecf8427e *configure.win d3855d3fbaac2d0a20d1e51d67e1eee3 *inst/CITATION b07a9afd8482086dfb02c2a15cee36cd *inst/COPYRIGHTS 0cdeb67a708b9ea50f172e121fb24855 *inst/NOTICE f6e936158b460297c7f6c207b24e558c *inst/WORDLIST 5e2b83c8e326012cd983294bbc5f670d *inst/doc/redland_overview.R f86668254d1fec2e8f04314af6e7a2c9 *inst/doc/redland_overview.Rmd f0783d46aa5dde1fb698b7cde7fec0b3 *inst/doc/redland_overview.html 67f3001bf4fce8f92ff0b4ebea9927dc *inst/extdata/dc.rdf 59940b488bb6ae076454faefbc439528 *inst/extdata/example.rdf 7e0f88c1a1d08e1c79daaf28dbcdbddb *man/Model-class.Rd 03dd22e2f9017a3a76718d0f15e15af7 *man/Model-initialize.Rd 7baaf2bc6468323ae04cbd0e136e86b4 *man/Node-class.Rd 94138a7e71c1b2f04864f6bd375f14e6 *man/Node-initialize.Rd 5357d00b0e21538dffa66aae2db16740 *man/Parser-class.Rd 0fc6c400d7c16cc27cb54af3969ec0db *man/Parser-initialize.Rd 6c7ed6042ae56604d1ee0f6b7f0075a7 *man/Query-class.Rd 7d06c01393dc3c8ddd3db71be9b59912 *man/Query-initialize.Rd 36c8ccab9ccfe31728a173bae05bb39e *man/QueryResults-class.Rd 1cf771a175654bb5afeecd3dc6ac1a5a *man/QueryResults-initialize.Rd bbfb1343291f92d696185857858309d6 *man/Serializer-class.Rd 4b19509fb1e0ab9c439f81678ca88f33 *man/Serializer-initialize.Rd 7b371136b4da2ee83027dd62c550a0c6 *man/Statement-class.Rd bf44371c5a58ae2c59d7010b613b439e *man/Statement-initialize.Rd 54be2ec1183d7d29cda0b0661ad8c76c *man/Storage-class.Rd d92656843b88447b65f155aa27d894ef *man/Storage-initialize.Rd 32d941848883cbf9deebea1a3b1bcb9b *man/World-class.Rd 41a49e36a2a3b47639417b826e0eee3b *man/World-initialize.Rd 612d6297aed1e67f345ed9ef69ef4890 *man/addStatement.Rd 60e394a0bd5bad8dbb9cdac1d1da2867 *man/executeQuery.Rd 78dc10f1984c4eeae7d8f6453732c027 *man/freeModel.Rd 2b6506249b05f2d1ffd5edce2e305fb1 *man/freeParser.Rd 08af1301eb43ae33013b65478f7de910 *man/freeQuery.Rd c6758df15340acd58b1e826b3c4c273b *man/freeQueryResults.Rd 7cdc742941979621cd7d2363b24add17 *man/freeSerializer.Rd 90d32aae5317e835e50060d835bc9fb4 *man/freeStatement.Rd 5fd93fadc3fd72a88467bd0558d7e852 *man/freeStorage.Rd 82a24988e54583cf0a975dbd3c84d429 *man/freeWorld.Rd 4261b26312f883a3ade69d88191b98cc *man/getBlankNodeId.Rd 38c1cf5255f40a5f7022a23cd59ea647 *man/getNodeType.Rd 2a2a55c7c921566da8b7a9917d284ddc *man/getNodeValue.Rd da12d4e0ccca9a59323831cbdc0df235 *man/getQueryResultsLimit.Rd e0760e1a1e960f74364a0d6186182f6c *man/getResults.Rd f48b62e597bd4567d8b6a4d0950820ca *man/getTermType.Rd cef20d1c35c357463d68a8daea4834d8 *man/is.null.externalptr.Rd dda71d868c919ca7e1067703978c3972 *man/length-SWIGArray-method.Rd 99aefce0fe4c52d4bf7e5cc2a07e1227 *man/librdf_copyright_string.Rd b255f56448561d800141a72674c602c6 *man/librdf_copyright_string_get.Rd b76ef25e2e1d840fca09351be3ff3fe6 *man/librdf_digest_final.Rd 5a1104b92c33bd701f74a9b5b457fb26 *man/librdf_digest_init.Rd 4dc6f6af9ac83c0e2fbc438b28b474a0 *man/librdf_digest_to_string.Rd 63aeb8bda6d5fe1ba232c1f6bc3f82c5 *man/librdf_digest_update.Rd 406bbb6588b2fb99557c20573ba4ba82 *man/librdf_digest_update_string.Rd 0a362a229b44bc86e19a97e10ac70d91 *man/librdf_free_digest.Rd 5238bf36b01e23ca17712c10c477cb3a *man/librdf_free_hash.Rd 728159d44ca4196a7196f0929c9c8842 *man/librdf_free_iterator.Rd 95fb5973bb796813369e9d7d9d593e7d *man/librdf_free_model.Rd 6940afe4468e3c2c9e0fa6570684829b *man/librdf_free_node.Rd 0941ace1f02b789d5fc357b7865cd488 *man/librdf_free_parser.Rd dba289247d60af0b8fef4dc51b7a3fd1 *man/librdf_free_query.Rd 192f9be81c98f1656d3b70f34afe2f59 *man/librdf_free_query_results.Rd 2981e1e59d7ab638afabade08132f3c4 *man/librdf_free_serializer.Rd 6bb97983f6bb3baa4df76db149386f37 *man/librdf_free_statement.Rd 377423cfb4629f2074da5d0c1d28c47a *man/librdf_free_storage.Rd 2e58e93debf7c6a6e06545ab8f402fde *man/librdf_free_stream.Rd 58b15dd57537e9f209bfd2d3c7a281a2 *man/librdf_free_uri.Rd fd262c2c04f5b52636e07d39c28ccb15 *man/librdf_free_world.Rd bfef7812890a910d94d4628ab51be633 *man/librdf_hash_to_string.Rd e33baf62abadcf3efcfb74d3fb267889 *man/librdf_internal_test_error.Rd 829c378c7781e3e84cbe9fb9b5bb228f *man/librdf_internal_test_warning.Rd 0703d3c44a38546a1fbc456ddb0c674b *man/librdf_iterator_end.Rd 648b7a494d8ca9aa434e26d7dbbd93e2 *man/librdf_iterator_get_context.Rd ad5fbf57149216a4c49829db79e9cb57 *man/librdf_iterator_get_object.Rd 30cb71ea9fa847657c76d21a86aa844e *man/librdf_iterator_next.Rd 8c31136a1ac10cf897aedcdad3481b4b *man/librdf_log_message_code.Rd 127f7039ae356f5cadebde8f5168febb *man/librdf_log_message_facility.Rd 61e7650e174364163c1668e95dbb35d2 *man/librdf_log_message_level.Rd 7856753d512c8984cccc353d64d210e1 *man/librdf_log_message_locator.Rd 9e8c176448d1877994f170a236fe3a9c *man/librdf_log_message_message.Rd 1b47f1781070db4d4c7bb757d0712927 *man/librdf_model_add.Rd 2c2b621ac95fddd4fcf9cdec54dd4346 *man/librdf_model_add_statement.Rd c59d5508b0520fa6ea7acc5c9c7656be *man/librdf_model_add_statements.Rd ad98808c627b4206a011ca376c9350d8 *man/librdf_model_add_string_literal_statement.Rd c04645c5c7263909fa9d0914e89ebba0 *man/librdf_model_add_typed_literal_statement.Rd f93327a5480f211b0e1629056a81b3fc *man/librdf_model_as_stream.Rd 29e833283d50f178ee0bad281bc87615 *man/librdf_model_contains_context.Rd 89538cd6d62da9793814cfa45b39245f *man/librdf_model_contains_statement.Rd 54016064c16b97735dbfbfd40788ff8a *man/librdf_model_context_add_statement.Rd 0834c18a0c24520e04e222165c3b9090 *man/librdf_model_context_add_statements.Rd 6fca4f43b850546694ad15cfb2c29e71 *man/librdf_model_context_as_stream.Rd 73b0210bc3210c356aa00d6f75a921cb *man/librdf_model_context_remove_statement.Rd be2df7ce711d105a0b87ac204ad3d31e *man/librdf_model_context_remove_statements.Rd 3735cdbd86edca88642318e7a7071565 *man/librdf_model_find_statements.Rd bbca4e691f411344322018b05296b002 *man/librdf_model_find_statements_in_context.Rd 17a5cb1f96215bd7fbb70881d90776f2 *man/librdf_model_get_arc.Rd b2f55b8feb50429c0456c1513df593f3 *man/librdf_model_get_arcs.Rd ba1bf709b474ad708b0ff380c5ccfccd *man/librdf_model_get_arcs_in.Rd 73738d6a123dced22bf1a11b9175385f *man/librdf_model_get_arcs_out.Rd b7a30d8da339e017e316d9c839f0278d *man/librdf_model_get_contexts.Rd b2eb0b80fd10a9ae0779775b1bdc16c2 *man/librdf_model_get_feature.Rd e6089d09ffa968d1b3e6c80c41e63160 *man/librdf_model_get_source.Rd 62f5d8ab9be74d57fc003aea355b1f43 *man/librdf_model_get_sources.Rd 3131d9b35aead4886d163d40ae425814 *man/librdf_model_get_target.Rd 0f80bcd4817dd32032132f8e067f9ee0 *man/librdf_model_get_targets.Rd ea9b63c6c8e520faa9e0fe600af192a5 *man/librdf_model_has_arc_in.Rd cb996c619198e75bb7805404c8287479 *man/librdf_model_has_arc_out.Rd 098e0c34f397195cafbd83bb2c81025c *man/librdf_model_load.Rd 0e300455d48bb04c39c49dfae0c0d01e *man/librdf_model_query_execute.Rd eca81132f357b779d5ce49f993edb340 *man/librdf_model_remove_statement.Rd b47458c52e976b93dfc08cf8b8f333b1 *man/librdf_model_set_feature.Rd fb2f16ec70e6f92858711d39806ed70f *man/librdf_model_size.Rd 06fb5c725b6f8aece779edec93e14cb0 *man/librdf_model_sync.Rd b8e44d1a88d05db615795e6be976c372 *man/librdf_model_to_string.Rd 788e8319d874ef147d4d2159709c71af *man/librdf_model_transaction_commit.Rd a578fa7d30a33489e90304f84abef624 *man/librdf_model_transaction_rollback.Rd f9e74b3e5bc5cd3f7e7510b9584aa74d *man/librdf_model_transaction_start.Rd 90ca33ba6add7848998120be4845d24e *man/librdf_new_digest.Rd b69aeb981d0b7c53d5a0d57594e8b9ab *man/librdf_new_hash.Rd 77501ffec6cc0670ed0098a57202f09c *man/librdf_new_hash_from_array_of_strings.Rd c80463123b0f1bbbdcb5c44d6940561a *man/librdf_new_hash_from_string.Rd 9e01fa6fddc098b03b3b1386b97e0e8d *man/librdf_new_model.Rd 05747383034a9583e22b4046849fe272 *man/librdf_new_model_from_model.Rd 74d056bfafb6f99a45cf8488564a6781 *man/librdf_new_model_with_options.Rd 51bf2bf7f1ee1639720e083809f9951f *man/librdf_new_node.Rd f4e28ec8ec31569581b6b937be98904e *man/librdf_new_node_from_blank_identifier.Rd dd2205744e09a0601cccecba58e584d1 *man/librdf_new_node_from_literal.Rd 6da96c63ba3df510ac902641f2e55b10 *man/librdf_new_node_from_node.Rd ce51605d5c94b09de975a6ea23050881 *man/librdf_new_node_from_normalised_uri_string.Rd 3bb0eae4adae007f0281f6652068a736 *man/librdf_new_node_from_typed_literal.Rd 22e6d462406cd268747f58e6863f76fc *man/librdf_new_node_from_uri.Rd 2d3950dedadc0f86ce15604c176601a8 *man/librdf_new_node_from_uri_local_name.Rd 0510c88be6f85432fc63adb63941674f *man/librdf_new_node_from_uri_string.Rd e20167390e7b520a73f8c5dee49d9c2b *man/librdf_new_parser.Rd 039a32ae64b4576fb7ce3c1033923a2c *man/librdf_new_query.Rd b926d3d1927834f8727d04ea357fc462 *man/librdf_new_query_from_query.Rd e6d14ad11fd157dd9c1a9913fc4543bb *man/librdf_new_serializer.Rd 95a57ad1de3e2123cac4ea3ef6798ea1 *man/librdf_new_statement.Rd 747e6e008e77c534073be5e508a9c9db *man/librdf_new_statement_from_nodes.Rd eeabe95c6c1af1a41a507f4744a4c00a *man/librdf_new_statement_from_statement.Rd c36749817603e0fa5ce5f5d0ed355504 *man/librdf_new_storage.Rd faa52aeda706ea4041718e58f17558f9 *man/librdf_new_storage_from_storage.Rd b83814d2a1cbf8c81102c19cf36c0aad *man/librdf_new_uri.Rd bdaa5b6ff64fbe6a77da6f004ab8cf5e *man/librdf_new_uri_from_filename.Rd d273971a83a1cd3511d6398675964c53 *man/librdf_new_uri_from_uri.Rd baac589d3ab87f7da7a18f62b61918b4 *man/librdf_new_world.Rd 8407649495b6688339fdd8933f025113 *man/librdf_node_equals.Rd ede0f0dbfda4447ce819226f35f3edb9 *man/librdf_node_get_blank_identifier.Rd 5bc6e92da29da1c016e46cada18e5d79 *man/librdf_node_get_li_ordinal.Rd 53909fa3cd4ec104cc27e4165bebb0e1 *man/librdf_node_get_literal_value.Rd 1c4b6755502331893bfdb13c60009275 *man/librdf_node_get_literal_value_as_latin1.Rd ddeed52dd3d6cab0ee56e85b461e7b7e *man/librdf_node_get_literal_value_datatype_uri.Rd f15dcd434fba76562f9c3fcfcc53485c *man/librdf_node_get_literal_value_is_wf_xml.Rd ddfbbc1f3b6d438f2cf17b062b91cfdc *man/librdf_node_get_literal_value_language.Rd d2c0f71225999c00c4e1ef54e2f55aa3 *man/librdf_node_get_type.Rd 003f7b33763093a7ad7153dd4a0f9805 *man/librdf_node_get_uri.Rd 6d04f52a492e76e3c29ce6b742e7d0c3 *man/librdf_node_is_blank.Rd 4a51bc5ac06004d32a0e1de17ad2b41e *man/librdf_node_is_literal.Rd 7c01f7e8c2dbb964e1c1807c7c87ec58 *man/librdf_node_is_resource.Rd a19cedb955e0e712dbf8408c0dd95738 *man/librdf_parser_check_name.Rd 429401968d517c4a5d77b60877ec13d5 *man/librdf_parser_get_accept_header.Rd 5c293b0dec17941658b87b8a9379ef44 *man/librdf_parser_get_feature.Rd e342a3b8c3ac48ce18f5ce092d3614a8 *man/librdf_parser_get_namespaces_seen_count.Rd dac3d8e1b59840db1b00aee067f88f04 *man/librdf_parser_get_namespaces_seen_prefix.Rd 42185f234d8b39e7a1e853f7e3e3364b *man/librdf_parser_get_namespaces_seen_uri.Rd cd816f3b8003762c22bcc1154cb5b402 *man/librdf_parser_guess_name2.Rd cf73eef2a94dd474f1895f8c9e02dd1c *man/librdf_parser_parse_as_stream.Rd bf38795ea6f4b710f6ffdc7d20db5064 *man/librdf_parser_parse_counted_string_as_stream.Rd bd048211e22b5acdc6922848b7b4b081 *man/librdf_parser_parse_counted_string_into_model.Rd 790f90a50c7dcaa1baa15c7e64255604 *man/librdf_parser_parse_into_model.Rd 6a97992335879f9088faffb50064c9a9 *man/librdf_parser_parse_string_as_stream.Rd dc176825e6b196a4a7c6d1205532a811 *man/librdf_parser_parse_string_into_model.Rd 29a397c29608eea3a821e8f94194890a *man/librdf_parser_set_feature.Rd 5d8397dcdd85b2b9466c452bc60f1c8f *man/librdf_query_execute.Rd f61691decc306ab5efab04e3cd901cfe *man/librdf_query_get_limit.Rd 055798887b9d129f80d0ffbfbc75b5b9 *man/librdf_query_get_offset.Rd 069de53dec9b178c51cf7ab5000253ba *man/librdf_query_results_as_stream.Rd 73a65aa05cacbba314b0b5648a1ea4cf *man/librdf_query_results_finished.Rd e31ff4302755778095cb1b18ec3c9fa1 *man/librdf_query_results_get_binding_name.Rd 7d281d26e8949f07ac0d60ef59408682 *man/librdf_query_results_get_binding_value.Rd 98e863b43be94b328682b26fe076ffe0 *man/librdf_query_results_get_binding_value_by_name.Rd 01c4ed737efb74cdd7ab67ba26359994 *man/librdf_query_results_get_bindings_count.Rd 53dae7ff02d2e12f7318fbb6034e7835 *man/librdf_query_results_get_boolean.Rd bf26bef6bcab5a29e26e715fd0e08e24 *man/librdf_query_results_get_count.Rd b7f3b1486abf8233e3ab8518e667cd88 *man/librdf_query_results_is_bindings.Rd a349c4b11c793792478d5b8a32ad3f9d *man/librdf_query_results_is_boolean.Rd a5b36623c9874e8c07fcde7d82994d6c *man/librdf_query_results_is_graph.Rd 453fba1f891313d768df2314dfa0ffbb *man/librdf_query_results_is_syntax.Rd b68f822e1845275b30dd97ffb005fbfe *man/librdf_query_results_next.Rd a0af015d124da1be65e5995e641e8588 *man/librdf_query_results_to_file2.Rd 66f9cd4a3e49a085a8c3b80958b1e1ad *man/librdf_query_results_to_string2.Rd 0f5e1a40b07c386c0dc0266cee61087b *man/librdf_query_set_limit.Rd 970d056a485ac23ff93d983721b0e405 *man/librdf_query_set_offset.Rd 70383ab27f2efc92aa727f70cb2f7065 *man/librdf_serializer_check_name.Rd 6fc5f8a60b0ccb8473a9a8eec4493139 *man/librdf_serializer_get_feature.Rd c1c1f8ed74515c354a72bd96adf634a3 *man/librdf_serializer_serialize_model_to_file.Rd b5e6a418210c56233c0f3315efd55caf *man/librdf_serializer_serialize_model_to_string.Rd e046052d286443cd10f7eadacdc5d4fc *man/librdf_serializer_serialize_stream_to_file.Rd 24415a11ffa6931b1127f021580ebfbc *man/librdf_serializer_serialize_stream_to_string.Rd 8dcd3f23359b49e898338588fc3aece4 *man/librdf_serializer_set_feature.Rd 724f937a853d8e73f591bc2df18e0e81 *man/librdf_serializer_set_namespace.Rd 90527cccc718b55053cba4c9478bc8e2 *man/librdf_short_copyright_string.Rd a04523355410c4d4bf676ac389849743 *man/librdf_short_copyright_string_get.Rd 495dbb788575b77d5aa6c2cf8b2a5b02 *man/librdf_statement_equals.Rd ab8973fc0fe984eb5573d5f17c86053f *man/librdf_statement_get_object.Rd 456629b41bb6c6e84d6fbac8498959df *man/librdf_statement_get_predicate.Rd d5f4767ca3a506077bcea5dcc924daf2 *man/librdf_statement_get_subject.Rd 5418f549d34352c5f55ab4ee64bed29e *man/librdf_statement_is_complete.Rd 3d38153fa9d5852b4cd0d1a317a436e0 *man/librdf_statement_match.Rd 71f3571ec998251fe3dcebe80eec3bef *man/librdf_statement_set_object.Rd ec069a7765a86b9b03c87a7fe23af8ec *man/librdf_statement_set_predicate.Rd 4cb283a9e0f8d21edd59d015cdaa9eb3 *man/librdf_statement_set_subject.Rd ba1ea9311d5d93e0edc49898116ae017 *man/librdf_stream_end.Rd d32afaed8c7067da50ba10f07f1a980a *man/librdf_stream_get_object.Rd 3368fc980296a80eae4071ed80f6c7af *man/librdf_stream_next.Rd 046a812dccb4f71b7d7db8de2449b4ac *man/librdf_uri_compare.Rd db55e02a4df0e1d54a6fb2c942187111 *man/librdf_uri_equals.Rd 784bcc202f4101002251a37f6449b18c *man/librdf_uri_to_string.Rd cb594c377b9fca30af750dff1bbd7137 *man/librdf_version_decimal.Rd 0032958db93e0a58f1a449bf463d0d8a *man/librdf_version_decimal_get.Rd 21104feb7b5feb23719ee48d288514b7 *man/librdf_version_major.Rd 9facf78e7c8c86482c70e79a8362b071 *man/librdf_version_major_get.Rd 80e3cb2ba1a9b6281f11bd82476bd8bc *man/librdf_version_minor.Rd 1befbe789bf599b159676a7bacf39e5b *man/librdf_version_minor_get.Rd c65a72226293ffed8fadaa01973d83cb *man/librdf_version_release.Rd 3459df52d3610f01ee2264a02abf3bed *man/librdf_version_release_get.Rd 5d002a80400935ac110a1b7ba0384384 *man/librdf_version_string.Rd 9bada4763b9a03bdebba14c0a539ab0a *man/librdf_version_string_get.Rd 4f4f88bdd80e11e28cf89b38debbaf73 *man/librdf_world_get_feature.Rd 398208e60978dec19400268e729888bf *man/librdf_world_open.Rd 34647b332084863364d2145c4f80a767 *man/librdf_world_set_feature.Rd c8965e72a24782057f261cad816048e4 *man/librdf_world_set_logger.Rd 8d961b96a28e43c920e1f2098ca086d1 *man/mergeNamespace_roclet.Rd e6d9d0e844544b4f110c528e72856031 *man/parseFileIntoModel.Rd 4dac30edbff476ef1c374512d71d5927 *man/raptor_locator_byte.Rd dffe8da08b6f984b4d1e6a820bbb4816 *man/raptor_locator_column.Rd a039d00ed4abc9cfd5350433a5233cd7 *man/raptor_locator_file.Rd 0b0f3a6f6fdc0c40f74061cb7ee34a60 *man/raptor_locator_line.Rd 358be484b9c9865e9dd30c9189f84db1 *man/raptor_locator_uri.Rd 5b329600c2c8c025444d696bace0ad6e *man/raptor_version_decimal.Rd 1b7ef712867954c716e9fb651f4bc178 *man/raptor_version_decimal_get.Rd 0efc83006c9957e0adfc05b3562b4fa9 *man/raptor_version_major.Rd 53bbd7b68fb86ff8cdab450916ac40fb *man/raptor_version_major_get.Rd a095e23f134aef0b8378ac4a5861da9b *man/raptor_version_minor.Rd 91a2fb85e49a1109e0775f21f7bf0d4d *man/raptor_version_minor_get.Rd 2f5bd1c99362ad04cbd35a985f85db69 *man/raptor_version_release.Rd 71aa457ac8365da931faf5ac02f96a57 *man/raptor_version_release_get.Rd 1df6ac730a3b6da374889963a8b1f6a0 *man/raptor_version_string.Rd f875ecf04b5f3b06f718fc3c9e274980 *man/raptor_version_string_get.Rd 94f1f973ae8beb381ab4f76c2fbd3210 *man/rasqal_version_decimal.Rd d4b43cbd30e6e936b6e4246e555dd648 *man/rasqal_version_decimal_get.Rd b387b4cde76698e15a2c05970c400b68 *man/rasqal_version_major.Rd 0533ac2be65209db619d30ae2007d802 *man/rasqal_version_major_get.Rd 00ed28b73afb791d3711fa284b0008f2 *man/rasqal_version_minor.Rd aa424e7805c37478ab27a8dff0393dc4 *man/rasqal_version_minor_get.Rd 16eb634e58dbff48e063ebb7cf5db99d *man/rasqal_version_release.Rd 97c91fcd2e270e540266aff19c6a507f *man/rasqal_version_release_get.Rd 2a5b984a8f4a598dd104e5e24b1c2c7f *man/rasqal_version_string.Rd 403d8d480b21b2adcba40d0258f7f5fb *man/rasqal_version_string_get.Rd 94cba72abcb372facf2bf27cea1514ad *man/redland.Rd 5b8bba405cdfbd422513345815294280 *man/roclet_output.roclet_mergeNamespace.Rd b59e49077ec06efd0c7b4436bd5f9d75 *man/roclet_process.roclet_mergeNamespace.Rd fa94b9153c57f3e0540c917b99d2281f *man/serializeToCharacter.Rd a0cf300b9e588d90f04b3bad864e69ad *man/serializeToFile.Rd b6ca13bdfd1d2ab121811b2c6d12e964 *man/setNameSpace.Rd e3f300ea81d9f618064cfee37adaa24b *man/setQueryResultsLimit.Rd 36bd4afd0a3a7f882f5b13eefe9c0904 *man/sub-ExternalReference-method.Rd f9745a146d8f14264c226d6537388292 *man/subset-ExternalReference-method.Rd fef3004908279d9c03a1f3c31989b684 *man/writeResults.Rd 06dae6c554fc448dfe0e4ff0566e6415 *src/Makevars.in dfa007a3091aea19f28ad169d0d172af *src/Makevars.win 36bedaa4bffb35288ef73dfd6e7c8623 *src/redland.c 748492c77d626604f4ebda4f8862db9c *src/util.c 78a7f421feb7208c58c9197ba4eb5edb *tests/spelling.R 4d2de501fe63927667fc4eaaacc99a38 *tests/test-all.R a9b6b1ba7090a96b5633a23b245cc813 *tests/testthat/test.Model.R fbc5698a7f63bca07dbc4120ec4e76d2 *tests/testthat/test.Node.R 5d408032cc602bb137943e33fc2cb356 *tests/testthat/test.Parser.R 9da4cecf1cc98c6fef61d5b5b1726113 *tests/testthat/test.Query.R 7bae126ce32f4f30572706538d6aebb9 *tests/testthat/test.Serializer.R 282a33cc867b696379793887468fed15 *tests/testthat/test.Statement.R 85ad1c710a04f16416f86173a918ae73 *tests/testthat/test.Storage.R 0042d2d65a5768ab86f5c7d7ff16b89e *tests/testthat/test.World.R 575dd6e7358f7d52c53e39fa2db49837 *tests/testthat/test.redland_base.R 7485f7296b6c79676f46873d59987cf3 *tools/winlibs.R f86668254d1fec2e8f04314af6e7a2c9 *vignettes/redland_overview.Rmd redland/inst/0000755000176200001440000000000013546534033012646 5ustar liggesusersredland/inst/doc/0000755000176200001440000000000013546534033013413 5ustar liggesusersredland/inst/doc/redland_overview.Rmd0000644000176200001440000000473513544473277017441 0ustar liggesusers--- title: "redland: create, query and write RDF graphs" author: "Peter Slaughter" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{redland RDF} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ## Introduction The `redland` R package provides methods to create, query and write to disk data stored in the Resource Description Framework (RDF). RDF provides a standardized way to make statements about resources and the relationships between them. Typical resources include datasets that are available via URLs. Resources don't have to be available online, for example a resource could also be the name of the person that created a dataset. A collection of RDF statements comprise an RDF graph, which can be read and interpreted by an RDF capable software application that uses the resources described in the graph. An introduction to RDF can be found at http://www.w3.org/TR/2014/NOTE-rdf11-primer-20140624. ## Examples The following example reads an RDF graph from a disk file that was previously saved in the RDF/XML format: ```{r} library(redland) world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world=world, storage, options="") parser <- new("Parser", world) parseFileIntoModel(parser, world, system.file("extdata", "dc.rdf", package="redland"), model) ``` Next the RDF graph is queried for statements of interest, using the [SPARQL query syntax](http://www.w3.org/TR/rdf-sparql-query) ```{r} queryString <- 'PREFIX dc: SELECT ?a ?c WHERE { ?a dc:creator ?c . }' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) queryResult <- executeQuery(query, model) results <- getResults(query, model, "rdfxml") cat(sprintf("Results from query: %s\n", results)) ``` Next, additional statements can be added to the RDF graph: ```{r} stmt <- new("Statement", world=world, subject="http://www.dajobe.org/", predicate="http://purl.org/dc/elements/1.1/language", object="en") addStatement(model, stmt) ``` Now the RDF graph can be written to disk: ```{r} serializer <- new("Serializer", world, mimeType="application/rdf+xml") status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") filePath <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".rdf") status <- serializeToFile(serializer, world, model, filePath) ``` redland/inst/doc/redland_overview.html0000644000176200001440000003621113546534033017643 0ustar liggesusers redland: create, query and write RDF graphs

redland: create, query and write RDF graphs

Peter Slaughter

2019-10-06

Introduction

The redland R package provides methods to create, query and write to disk data stored in the Resource Description Framework (RDF). RDF provides a standardized way to make statements about resources and the relationships between them. Typical resources include datasets that are available via URLs. Resources don’t have to be available online, for example a resource could also be the name of the person that created a dataset. A collection of RDF statements comprise an RDF graph, which can be read and interpreted by an RDF capable software application that uses the resources described in the graph.

An introduction to RDF can be found at http://www.w3.org/TR/2014/NOTE-rdf11-primer-20140624.

Examples

The following example reads an RDF graph from a disk file that was previously saved in the RDF/XML format:

Next the RDF graph is queried for statements of interest, using the SPARQL query syntax

## Results from query: <?xml version="1.0" encoding="utf-8"?>
## <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
##    xmlns:rs="http://www.w3.org/2001/sw/DataAccess/tests/result-set#">
##   <rs:ResultSet>
##     <rs:resultVariable>a</rs:resultVariable>
##     <rs:resultVariable>c</rs:resultVariable>
##     <rs:solution>
##       <rdf:Description>
##         <rs:binding>
##           <rdf:Description>
##             <rs:value rdf:resource="http://www.dajobe.org/"/>
##             <rs:variable>a</rs:variable>
##           </rdf:Description>
##         </rs:binding>
##         <rs:binding>
##           <rdf:Description>
##             <rs:value>Dave Beckett</rs:value>
##             <rs:variable>c</rs:variable>
##           </rdf:Description>
##         </rs:binding>
##       </rdf:Description>
##     </rs:solution>
##   </rs:ResultSet>
## </rdf:RDF>

Next, additional statements can be added to the RDF graph:

## [1] 0

Now the RDF graph can be written to disk:

redland/inst/doc/redland_overview.R0000644000176200001440000000266213546534033017103 0ustar liggesusers## ------------------------------------------------------------------------ library(redland) world <- new("World") storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'") model <- new("Model", world=world, storage, options="") parser <- new("Parser", world) parseFileIntoModel(parser, world, system.file("extdata", "dc.rdf", package="redland"), model) ## ------------------------------------------------------------------------ queryString <- 'PREFIX dc: SELECT ?a ?c WHERE { ?a dc:creator ?c . }' query <- new("Query", world, queryString, base_uri=NULL, query_language="sparql", query_uri=NULL) queryResult <- executeQuery(query, model) results <- getResults(query, model, "rdfxml") cat(sprintf("Results from query: %s\n", results)) ## ------------------------------------------------------------------------ stmt <- new("Statement", world=world, subject="http://www.dajobe.org/", predicate="http://purl.org/dc/elements/1.1/language", object="en") addStatement(model, stmt) ## ------------------------------------------------------------------------ serializer <- new("Serializer", world, mimeType="application/rdf+xml") status <- setNameSpace(serializer, world, namespace="http://purl.org/dc/elements/1.1/", prefix="dc") filePath <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".rdf") status <- serializeToFile(serializer, world, model, filePath) redland/inst/COPYRIGHTS0000644000176200001440000000210413544473277014273 0ustar liggesusersThe Redland R package is copyright; Copyright (C) 2014-2016 Regents of the University of California This product includes Redland software (http://librdf.org/) developed at the Institute for Learning and Research Technology, University of Bristol, UK (http://www.bristol.ac.uk/). Redland Software is copyright: Copyright (C) 2000-2013 David Beckett Copyright (C) 2000-2005 University of Bristol and is included in this derivative product under the terms of the Apache 2 license, which requires posting of a NOTICE file, which is included in this package. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. redland/inst/extdata/0000755000176200001440000000000013544473277014312 5ustar liggesusersredland/inst/extdata/example.rdf0000644000176200001440000000060613544473277016444 0ustar liggesusers John Smith's Home Page John Smith The generic home page of John Smith redland/inst/extdata/dc.rdf0000755000176200001440000000061113544473277015376 0ustar liggesusers Dave Beckett's Home Page Dave Beckett The generic home page of Dave Beckett. redland/inst/CITATION0000644000176200001440000000143513544473277014020 0ustar liggesusersyear <- sub("-.*", "", meta$Date) note <- sprintf("R package version %s", meta$Version) title <- meta$Title authors <- c(person("Matthew B.", "Jones", role = c("aut", "cre"), email = "jones@nceas.ucsb.edu"), person("Peter", "Slaughter", role = c("aut"), email = "slaughter@nceas.ucsb.edu"), person("Jeroen", "Ooms", role=c("aut"), email="jereonooms@gmail.com"), person("Carl", "Boettiger", role = c("aut"), email = "cboettig@gmail.com"), person("Scott", "Chamberlain", role = c("aut"), email = "myrmecocystus@gmail.com")) bibentry(bibtype = "Manual", title = paste0("{redland}: ", title), author = authors, year = year, note = note, url = "https://github.com/ropensci/redland-bindings/tree/master/R/redland", doi = "10.5063/F1VM496B") redland/inst/NOTICE0000644000176200001440000000130213544473277013560 0ustar liggesusersThis product includes Redland software (http://librdf.org/) developed at the Institute for Learning and Research Technology, University of Bristol, UK (http://www.bristol.ac.uk/). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. redland/inst/WORDLIST0000644000176200001440000000124513546423741014045 0ustar liggesusersABI Cómo Destructor ExternalReferences Github Gries Hola HomeBrew Homebrew MacPorts Macports NAMSPACE NCEAS QueryResult QueryResults RDF RDF's Rasqal Roxygen SPARQL SWIGArray Serializer Synchronise URI URIs Uuri VM VignetteEncoding VignetteEngine VignetteIndexEntry XMLSchema api conten csv deserialized devtools doi env estás executeQuery externalptr formness freeNode func funciton getNextResult http https initialise isa json knitr lexicographically li libdf librdf mergeNamespace mergedNamespace mimeType mysql nceas nodeID normalised parsers postgresql querystring rdf rdfxml rmarkdown roc roclet roclets ropensci roxygen roxygenize roxygenized serializer ubuntu uri wwwredland/cleanup0000755000176200001440000000003513546534034013245 0ustar liggesusers#!/bin/sh rm -f src/Makevars redland/configure0000755000176200001440000000527713546534034013614 0ustar liggesusers#!/bin/bash # Anticonf (tm) script by Jeroen Ooms (2017) # This script will query 'pkg-config' for the required cflags and ldflags. # If pkg-config is unavailable or does not find the library, try setting # INCLUDE_DIR and LIB_DIR manually via e.g: # R CMD INSTALL --configure-vars='INCLUDE_DIR=/.../include LIB_DIR=/.../lib' # Library settings PKG_CONFIG_NAME="redland" PKG_DEB_NAME="librdf0-dev" PKG_RPM_NAME="redland-devel" PKG_BREW_NAME="redland" PKG_TEST_HEADER="" PKG_LIBS="-lrdf" PKG_CFLAGS="" # Use pkg-config if available if [ $(command -v pkg-config) ]; then PKGCONFIG_CFLAGS=$(pkg-config --cflags --silence-errors ${PKG_CONFIG_NAME}) PKGCONFIG_LIBS=$(pkg-config --libs ${PKG_CONFIG_NAME}) fi # Note that cflags may be empty in case of success if [ "$INCLUDE_DIR" ] || [ "$LIB_DIR" ]; then echo "Found INCLUDE_DIR and/or LIB_DIR!" PKG_CFLAGS="-I$INCLUDE_DIR $PKG_CFLAGS" PKG_LIBS="-L$LIB_DIR $PKG_LIBS" elif [ "$PKGCONFIG_CFLAGS" ] || [ "$PKGCONFIG_LIBS" ]; then echo "Found pkg-config cflags and libs!" PKG_CFLAGS=${PKGCONFIG_CFLAGS} PKG_LIBS=${PKGCONFIG_LIBS} elif [[ "$OSTYPE" == "darwin"* ]]; then if [ $(command -v brew) ]; then BREWDIR=$(brew --prefix) else curl -sfL "https://jeroen.github.io/autobrew/$PKG_BREW_NAME" > autobrew source autobrew fi PKG_CFLAGS=$($BREWDIR/opt/pkg-config/bin/pkg-config --cflags ${PKG_CONFIG_NAME}) PKG_LIBS=$($BREWDIR/opt/pkg-config/bin/pkg-config --libs --static ${PKG_CONFIG_NAME}) fi # For debugging echo "Using PKG_CFLAGS=$PKG_CFLAGS" echo "Using PKG_LIBS=$PKG_LIBS" # Find compiler CC=$(${R_HOME}/bin/R CMD config CC) CFLAGS=$(${R_HOME}/bin/R CMD config CFLAGS) CPPFLAGS=$(${R_HOME}/bin/R CMD config CPPFLAGS) # Test configuration echo "#include $PKG_TEST_HEADER" | ${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E -xc - >/dev/null 2>&1 || R_CONFIG_ERROR=1; # Customize the error if [ $R_CONFIG_ERROR ]; then echo "------------------------- ANTICONF ERROR ---------------------------" echo "Configuration failed because $PKG_CONFIG_NAME was not found. Try installing:" echo " * deb: $PKG_DEB_NAME (Debian, Ubuntu, etc)" echo " * rpm: $PKG_RPM_NAME (Fedora, EPEL)" echo " * brew: $PKG_BREW_NAME (OSX)" echo "If $PKG_CONFIG_NAME is already installed, check that 'pkg-config' is in your" echo "PATH and PKG_CONFIG_PATH contains a $PKG_CONFIG_NAME.pc file. If pkg-config" echo "is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:" echo "R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'" echo "--------------------------------------------------------------------" exit 1; fi # Write to Makevars sed -e "s|@cflags@|$PKG_CFLAGS|" -e "s|@libs@|$PKG_LIBS|" src/Makevars.in > src/Makevars # Success exit 0