Skip to content

Commit

Permalink
feat(rdfox-6-3a): Support for RDFox 6.3a and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeluk committed Aug 27, 2023
1 parent 712ede7 commit 470f51a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ colored = "2.0.0"
ignore = "0.4.18"
iref = "2.1.3"
indoc = "2.0.0"
num_enum = "0.6.1"
num_enum = "0.7.0"
nom = { version = "7.1.1", optional = true }
phf = { version = "0.11", features = ["macros"] }
r2d2 = "0.8.1"
Expand All @@ -60,13 +60,13 @@ tracing-subscriber = { version = "0.3.16", features = ["env-filter", "fmt", "ans
curl = "0.4.43"
lazy_static = "1.4.0"
zip = "0.6.2"
bindgen = "0.65.1"
bindgen = "0.66.1"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]

[features]
default = ["nom", "rdfox-6-3"]
default = ["nom", "rdfox-6-3a"]
rdftk-support = ["rdftk_iri/uuid_iri"]
nom-support = ["nom"]
#
Expand All @@ -77,6 +77,6 @@ rdfox-dylib = []
# Select a version
#
rdfox-6-2 = []
rdfox-6-3 = []
rdfox-6-3a = []


6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ lazy_static! {
static ref RDFOX_VERSION_EXPECTED: &'static str =
option_env!("RDFOX_VERSION_EXPECTED").unwrap_or("6.2");
}
#[cfg(feature = "rdfox-6-3")]
#[cfg(feature = "rdfox-6-3a")]
lazy_static! {
static ref RDFOX_VERSION_EXPECTED: &'static str =
option_env!("RDFOX_VERSION_EXPECTED").unwrap_or("6.3");
option_env!("RDFOX_VERSION_EXPECTED").unwrap_or("6.3a");
}
#[cfg(not(any(feature = "rdfox-6-2", feature = "rdfox-6-3")))]
#[cfg(not(any(feature = "rdfox-6-2", feature = "rdfox-6-3a")))]
compile_error!("You have to at least specify one of the rdfox-X-Y version number features");

fn rdfox_download_url() -> String {
Expand Down
8 changes: 4 additions & 4 deletions src/cursor/cursor_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ impl<'a> CursorRow<'a> {
let mut lexical_form_size = 0_usize;
let mut datatype_id: u8 = DataType::UnboundValue as u8;
let mut resource_resolved = false;
tracing::trace!(
target: LOG_TARGET_DATABASE,
"CCursor_appendResourceLexicalForm({term_index}):"
);
// tracing::trace!(
// target: LOG_TARGET_DATABASE,
// "CCursor_appendResourceLexicalForm({term_index}):"
// );

// CCursor_appendResourceLexicalForm(cursor, termIndex, lexicalFormBuffer,
// sizeof(lexicalFormBuffer), &lexicalFormSize, &datatypeID, &resourceResolved);
Expand Down
2 changes: 1 addition & 1 deletion src/data_store_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl DataStoreConnection {
base_iri
.as_ref()
.map(|iri| iri.as_str())
.unwrap_or_else(|| DEFAULT_BASE_IRI.deref()),
.unwrap_or_else(|| DEFAULT_BASE_IRI),
),
)
}
Expand Down

0 comments on commit 470f51a

Please sign in to comment.