1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
|
Description: avoid not-in-Debian crates rustema rustema-compiler
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-11-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,6 @@
"dctap",
"iri_s",
"mie",
- "pgschema",
"prefixmap",
"python",
"rbe",
@@ -78,7 +77,6 @@
oxrdfxml = { version = "0.2.0" }
oxsdatatypes = "0.2.2"
oxttl = { version = "0.2.0", features = ["rdf-12"] }
-pgschema = { version = "0.1.5", path = "./pgschema" }
petgraph = { version = ">= 0.6.4, <= 0.8" }
prefixmap = { version = "0.1.104", path = "./prefixmap" }
pretty = { version = "0.12" }
--- a/rudof_cli/Cargo.toml
+++ b/rudof_cli/Cargo.toml
@@ -21,7 +21,6 @@
iri_s.workspace = true
oxrdf.workspace = true
prefixmap.workspace = true
-pgschema.workspace = true
rdf_config.workspace = true
regex.workspace = true
rudof_generate.workspace = true
--- a/rudof_cli/src/lib.rs
+++ b/rudof_cli/src/lib.rs
@@ -16,7 +16,6 @@
pub mod node;
pub mod output_convert_format;
pub mod output_convert_mode;
-pub mod pgschema;
pub mod query;
pub mod rdf_config;
pub mod rdf_reader_mode;
@@ -47,7 +46,6 @@
pub use input_convert_mode::*;
pub use output_convert_format::*;
pub use output_convert_mode::*;
-pub use pgschema::*;
pub use rdf_config::*;
pub use rdf_reader_mode::*;
pub use result_data_format::*;
--- a/rudof_cli/src/main.rs
+++ b/rudof_cli/src/main.rs
@@ -24,8 +24,6 @@
use rudof_cli::query::run_query;
use rudof_cli::rdf_config::run_rdf_config;
use rudof_cli::run_compare;
-use rudof_cli::run_pgschema;
-use rudof_cli::run_validate_pgschema;
use rudof_cli::{
GenerateSchemaFormat, ValidationMode, run_convert, run_dctap, run_service, run_shacl,
run_shapemap, run_shex, run_validate_shacl, run_validate_shex,
@@ -269,16 +267,6 @@
*force_overwrite,
)
}
- ValidationMode::PGSchema => run_validate_pgschema(
- schema,
- data,
- data_format,
- shapemap,
- shapemap_format,
- output,
- &config,
- *force_overwrite,
- ),
}
}
Some(Command::ShexValidate {
@@ -474,26 +462,6 @@
)?;
Ok(())
}
- Some(Command::Pgschema {
- schema,
- schema_format,
- output,
- result_schema_format,
- config,
- show_time,
- show_schema,
- force_overwrite,
- }) => {
- let config = get_config(config)?;
- run_pgschema(
- schema,
- schema_format,
- output,
- result_schema_format,
- *force_overwrite,
- &config,
- )
- }
Some(Command::Convert {
file,
format,
--- a/rudof_cli/src/validation_mode.rs
+++ b/rudof_cli/src/validation_mode.rs
@@ -6,7 +6,6 @@
pub enum ValidationMode {
ShEx,
SHACL,
- PGSchema,
}
impl Display for ValidationMode {
@@ -14,7 +13,6 @@
match self {
ValidationMode::ShEx => write!(dest, "shex"),
ValidationMode::SHACL => write!(dest, "shacl"),
- ValidationMode::PGSchema => write!(dest, "pgschema"),
}
}
}
--- a/rudof_lib/Cargo.toml
+++ b/rudof_lib/Cargo.toml
@@ -27,7 +27,6 @@
iri_s.workspace = true
mie.workspace = true
oxrdf = { workspace = true, features = ["oxsdatatypes"] }
-pgschema.workspace = true
prefixmap.workspace = true
rdf_config.workspace = true
reqwest.workspace = true
--- a/rudof_cli/src/cli.rs
+++ b/rudof_cli/src/cli.rs
@@ -1,4 +1,3 @@
-use crate::PgSchemaFormat;
use crate::dctap_format::DCTapFormat;
use crate::result_compare_format::ResultCompareFormat;
use crate::{
@@ -176,74 +175,6 @@
#[arg(
long = "force-overwrite",
- help = "Force overwrite to output file if it already exists",
- default_value_t = false
- )]
- force_overwrite: bool,
-
- /// Config file path, if unset it assumes default config
- #[arg(
- short = 'c',
- long = "config-file",
- value_name = "FILE",
- help = "Config file name"
- )]
- config: Option<PathBuf>,
- },
-
- /// Show information about Property Graph Schemas
- Pgschema {
- #[arg(
- short = 's',
- long = "schema",
- value_name = "INPUT",
- help = "Schema, FILE, URI or - for stdin"
- )]
- schema: InputSpec,
-
- #[arg(
- short = 'f',
- long = "format",
- value_name = "FORMAT",
- ignore_case = true,
- help = "PGSchema format",
- default_value_t = PgSchemaFormat::PgSchemaC,
- value_enum
- )]
- schema_format: PgSchemaFormat,
-
- #[arg(
- short = 'r',
- long = "result-format",
- ignore_case = true,
- value_name = "FORMAT",
- help = "Result schema format",
- default_value_t = PgSchemaFormat::PgSchemaC,
- value_enum
- )]
- result_schema_format: PgSchemaFormat,
-
- #[arg(
- short = 't',
- value_name = "BOOL",
- help = "Show processing time",
- long = "show-time"
- )]
- show_time: Option<bool>,
-
- #[arg(long = "show-schema", value_name = "BOOL", help = "Show schema")]
- show_schema: Option<bool>,
-
- #[arg(
- short = 'o',
- long = "output-file",
- value_name = "FILE",
- help = "Output file name, default = terminal"
- )]
- output: Option<PathBuf>,
-
- #[arg(
- long = "force-overwrite",
help = "Force overwrite to output file if it already exists",
default_value_t = false
)]
|