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
         )]
