Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on the new architecture of the tool #216

Draft
wants to merge 52 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
638a943
feat: supporting the slurp option
angelip2303 Nov 5, 2024
5710885
feat: including the slurp parameter to python
angelip2303 Nov 5, 2024
6f0c6e9
fix: improving the tests
angelip2303 Nov 5, 2024
f395e77
feat: moving the tests to its corresponding place
angelip2303 Nov 5, 2024
a6a74a5
fix: improving the naming conventions
angelip2303 Nov 6, 2024
01fe113
fix: changing slurp by an enum of possible subsetting modes
angelip2303 Nov 6, 2024
1908783
fix: subsetting is now used
angelip2303 Nov 6, 2024
21b7c68
fix: initial version of the new model
angelip2303 Nov 8, 2024
8ebaccf
feat: implementing a simple graph
angelip2303 Nov 11, 2024
a5bb3ac
WIP
angelip2303 Nov 13, 2024
3193851
fix: solving merge conflicts
angelip2303 Nov 13, 2024
cd64b11
WIP
angelip2303 Nov 13, 2024
23b27e6
fix: working on the refactoring
angelip2303 Nov 13, 2024
391611f
fix: separating the traits (API) form the impl (SRDF)
angelip2303 Nov 13, 2024
a9065f9
fix: fixing the IRI thing (less dependencies)
angelip2303 Nov 14, 2024
a1734c4
fix: prefixmap is now fixed
angelip2303 Nov 14, 2024
1f6930e
fix: fixing srdf
angelip2303 Nov 14, 2024
ca62703
WIP
angelip2303 Nov 15, 2024
e89e596
WIP
angelip2303 Nov 15, 2024
7e32d00
fix: fixing the tests
angelip2303 Nov 15, 2024
41da65b
WIP
angelip2303 Nov 15, 2024
db677b2
fix: fixing the tests of SRDF
angelip2303 Nov 15, 2024
37ae74b
fix: srdf is now fixed
angelip2303 Nov 15, 2024
244bf4b
WIP
angelip2303 Nov 15, 2024
10c7b52
fix: small clippy fix
angelip2303 Nov 15, 2024
6b00922
WIP
angelip2303 Nov 15, 2024
c7b9149
WIP
angelip2303 Nov 15, 2024
d80741b
WIP
angelip2303 Nov 15, 2024
a0c4d0a
fix: the SHACL AST is partially fixed
angelip2303 Nov 15, 2024
e7528b7
WIP
angelip2303 Nov 15, 2024
2373f40
WIP
angelip2303 Nov 15, 2024
5962a03
fix: fixing the compiled shapes
angelip2303 Nov 16, 2024
dc4620c
WIP
angelip2303 Nov 16, 2024
cdf27a1
WIP
angelip2303 Nov 16, 2024
cf99891
WIP
angelip2303 Nov 16, 2024
ff89824
WIP
angelip2303 Nov 16, 2024
5e69f70
WIP
angelip2303 Nov 16, 2024
99fb435
fix: fixing the value thing
angelip2303 Nov 16, 2024
6078d2d
fix: fixing the implementation of shacl_validation
angelip2303 Nov 16, 2024
00bb157
WIP
angelip2303 Nov 16, 2024
6f413fe
fix: fixing some naming conventions
angelip2303 Nov 16, 2024
aa89026
WIP
angelip2303 Nov 16, 2024
6979736
WIP
angelip2303 Nov 17, 2024
1dcdb9d
fix: modifying how we handle references
angelip2303 Nov 17, 2024
079c0a6
WIP
angelip2303 Nov 18, 2024
d6e7830
WIP
angelip2303 Nov 19, 2024
3cce6c7
WIP
angelip2303 Nov 21, 2024
a0fea84
WIP
angelip2303 Dec 3, 2024
8ee335b
WIP
angelip2303 Dec 3, 2024
6586f9d
fix: finally fixing SRDF
angelip2303 Dec 5, 2024
33fe842
fix: fixing shacl_ast
angelip2303 Dec 5, 2024
1c1ab52
WIP
angelip2303 Jan 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ Cargo.lock
.idea/

# Ignore virtual environments from the Python bindings
.venv
.venv
.DS_Store
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
[submodule "shacl_testsuite/data-shapes"]
path = shacl_testsuite/data-shapes
url = https://github.com/w3c/data-shapes.git
[submodule "shacl_validation/tests/data-shapes"]
path = shacl_validation/tests/data-shapes
url = https://github.com/w3c/data-shapes
81 changes: 36 additions & 45 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
[workspace]
resolver = "2"
members = [
"dctap",
# "dctap",
"rbe",
"rbe_testsuite",
# "rbe_testsuite",
"iri_s",
"prefixmap",
"srdf",
"shex_ast",
"shex_compact",
"rudof_lib",
"rudof_cli",
"shex_testsuite",
"shex_validation",
"shapemap",
# "shex_ast",
# "shex_compact",
# "rudof_lib",
# "rudof_cli",
# "shex_testsuite",
# "shex_validation",
# "shapemap",
"shacl_ast",
"shacl_validation",
"shacl_testsuite",
"shapes_converter",
# "shapes_converter",
"sparql_service",
"python",
# "python",
]

exclude = [
"shex_compact_winnow"
]

default-members = [
"rudof_cli"
]
exclude = ["shex_compact_winnow"]

[workspace.package]
edition = "2021"
Expand All @@ -46,37 +39,35 @@ authors = [
]

[workspace.dependencies]
iri_s = { version = "0.1.32", path = "./iri_s" }
dctap = { version = "0.1.31", path = "./dctap" }
prefixmap = { version = "0.1.32", path = "./prefixmap" }
iri_s = { version = "*", path = "./iri_s" }
# dctap = { version = "0.1.31", path = "./dctap" }
prefixmap = { version = "*", path = "./prefixmap" }
rbe = { version = "0.1.7", path = "./rbe" }
rbe_testsuite = { version = "0.1.7", path = "./rbe_testsuite" }
rudof_lib = { version = "0.1.35", path = "./rudof_lib" }
rudof_cli = { version = "0.1.35", path = "./rudof_cli" }
shex_ast = { version = "0.1.0", path = "./shex_ast" }
shapemap = { version = "0.1.0", path = "./shapemap" }
shacl_ast = { version = "0.1.35", path = "./shacl_ast" }
shacl_validation = { version = "0.1.37", path = "./shacl_validation" }
shapes_converter = { version = "0.1.33", path = "./shapes_converter" }
shex_testsuite = { version = "0.1.0", path = "./shex_testsuite" }
shex_validation = { version = "0.1.0", path = "./shex_validation" }
shex_compact = { version = "0.1.0", path = "./shex_compact" }
srdf = { version = "0.1.35", path = "./srdf" }
sparql_service = { version = "0.1.37", path = "./sparql_service" }
# rbe_testsuite = { version = "0.1.7", path = "./rbe_testsuite" }
# rudof_lib = { version = "0.1.35", path = "./rudof_lib" }
# rudof_cli = { version = "0.1.35", path = "./rudof_cli" }
# shex_ast = { version = "0.1.0", path = "./shex_ast" }
# shapemap = { version = "0.1.0", path = "./shapemap" }
shacl_ast = { version = "*", path = "./shacl_ast" }
shacl_validation = { version = "*", path = "./shacl_validation" }
# shapes_converter = { version = "0.1.33", path = "./shapes_converter" }
# shex_validation = { version = "0.1.0", path = "./shex_validation" }
# shex_compact = { version = "0.1.0", path = "./shex_compact" }
srdf = { version = "*", path = "./srdf" }
sparql_service = { version = "*", path = "./sparql_service" }

# [dependencies]
# External dependencies
anyhow = "1.0"
clap = { version = "4.2.1", features = ["derive"] }
colored = "2"
indexmap = "2.1"
oxrdf = "0.2.0-alpha.5"
clap = { version = "4.5.23", features = ["derive"] }
colored = "2.2.0"
indexmap = { version = "2", features = ["serde"] }
regex = "1.10.4"
supports-color = "3.0.0"
serde = "1"
serde = "1.0.216"
serde_json = "1.0"
serde_derive = "1"
serde_derive = "1.0.216"
serde_yml = "0.0.12"
thiserror = "1.0"
thiserror = "2.0.8"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = [ "env-filter" ] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
lazy_static = "1"
oxrdf = "0.2.0"
15 changes: 6 additions & 9 deletions iri_s/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iri_s"
version = "0.1.32"
version = "0.1.58"
authors.workspace = true
description.workspace = true
documentation = "https://docs.rs/iri_s"
Expand All @@ -10,15 +10,12 @@ homepage.workspace = true
repository.workspace = true

[features]
default = []
rdf-star = [ "oxrdf/rdf-star" ]

[dependencies]
lazy_static = "1"
oxrdf = { version = "0.2.0-alpha.5" }
oxiri = "0.2.3-alpha.1"
lazy_static = { workspace = true }
serde = { workspace = true }
serde_derive = { workspace = true }
thiserror = { workspace = true }
oxiri = "0.2.0-alpha.5"
reqwest = { version = "0.12", features = ["blocking", "json"] }
serde = "1.0"
serde_derive = "1.0"
thiserror = "1.0.0"
url = "2.2.2"
3 changes: 3 additions & 0 deletions iri_s/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# IriS

IriS acts as a wrapper for the actual IRI, allowing for a simple interaction
41 changes: 41 additions & 0 deletions iri_s/src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
use thiserror::Error;

#[derive(Error, Debug, Clone)]
pub enum GenericIriError {
#[error("Error parsing {str} as IRI. Error: {err}")]
IriParse { str: String, err: String },
#[error("Error parsing {str} using base: {base} as IRI. Error: {err}")]
IriWithBaseParse {
str: String,
base: String,
err: String,
},
#[error("Error resolving IRI `{other}` with base IRI `{base}`. Error: {err}")]
IriResolve {
base: String,
other: String,
err: String,
},
#[error("Error joining IRI `{current}` with `{str}`. Error: {err}")]
Join {
current: String,
str: String,
err: String,
},
#[error("Error creating reqwest HTTP client. Error: {error}")]
ReqwestClientCreation { error: String },
#[error("Error parsing Iri {str} as Url. Error: {error}")]
UrlParse { str: String, error: String },
#[error("HTTP request error: {error}")]
Reqwest { error: String },
#[error("HTTP request error as String: {error}")]
ReqwestText { error: String },
#[error("Error trying to obtain a path from file scheme Url: {url}")]
ConvertingFileUrlToPath { url: String },
#[error("Error reading from file {path} obtained from url {url}. Error: {error}")]
IO {
path: String,
url: String,
error: String,
},
}
63 changes: 0 additions & 63 deletions iri_s/src/iri.rs

This file was deleted.

Loading
Loading