Skip to content

Commit c5dd419

Browse files
committed
readd shapes
1 parent f0c3911 commit c5dd419

File tree

18 files changed

+2097
-673
lines changed

18 files changed

+2097
-673
lines changed

Cargo.lock

Lines changed: 1278 additions & 329 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/Cargo.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ edition = "2021"
77
version = "0.1.0"
88

99
[features]
10-
default = []
11-
shapes = ["rudof_lib"]
10+
default = ["shapes"]
11+
shapes = []
1212
tokio = ["tower-lsp/runtime-tokio"]
1313
agnostic = ["tower-lsp/runtime-agnostic"]
1414

@@ -30,6 +30,14 @@ chrono = { version = "0.4.42", default-features = false, features = ["serde"] }
3030
lazy_static = "1.5.0"
3131
lov = { path = "../lov/" }
3232

33-
rudof_lib = { git = "https://github.com/ajuvercr/rudof/", optional = true }
3433
oxigraph = { version = "0.5.3", features = ["rdf-12", "js"], default-features=false }
3534

35+
shacl_rdf = "0.1.135"
36+
shacl_ir = "0.1.141"
37+
srdf = "0.1.146"
38+
shacl_ast = "0.1.135"
39+
prefixmap = "0.1.145"
40+
iri_s = "0.1.137"
41+
oxrdf = "0.3.2"
42+
rudof_lib = "0.1.146"
43+

core/src/feature/goto_definition.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ mod system {
5151
let Some(term) = triple.term() else {
5252
continue;
5353
};
54+
let _span = tracing::debug_span!("goto_definition", term=%term.value).entered();
5455

55-
tracing::debug!("Found {} with kind {:?}", term.value, target);
56+
tracing::debug!("kind {:?}", target);
5657
if target == TermKind::Iri {
5758
// This is a named node, we should look project wide
5859
for (triples, rope, label) in &project {
60+
tracing::info!("Looking into buffer {}", label.as_str());
5961
let subs: HashSet<_> = triples
6062
.iter()
6163
.map(|x| x.s())

core/src/feature/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn setup_schedule<C: Client + Resource>(world: &mut World) {
3636
derive_ontologies.after(crate::store::load_store),
3737
));
3838

39-
#[cfg(feature = "shapes")]
39+
// #[cfg(feature = "shapes")]
4040
parse_schedule.add_systems((crate::systems::derive_shapes.after(triples),));
4141
world.add_schedule(parse_schedule);
4242
world.insert_resource(Store(oxigraph::store::Store::new().unwrap()));

core/src/feature/save.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use bevy_ecs::{schedule::ScheduleLabel, world::World};
22

33
#[cfg(feature = "shapes")]
4-
pub use crate::systems::{validate_shapes, validate_with_updated_shapes};
4+
pub use crate::systems::validate_shapes;
55

66
/// [`ScheduleLabel`] related to the OnSave schedule
77
#[derive(ScheduleLabel, Clone, Eq, PartialEq, Debug, Hash)]
@@ -10,7 +10,7 @@ pub struct Label;
1010
pub fn setup_schedule(world: &mut World) {
1111
let mut on_save = bevy_ecs::schedule::Schedule::new(Label);
1212
#[cfg(feature = "shapes")]
13-
on_save.add_systems((validate_shapes, validate_with_updated_shapes));
13+
on_save.add_systems(validate_shapes);
1414

1515
world.add_schedule(on_save);
1616
}

core/src/systems/shapes.rs

Lines changed: 0 additions & 313 deletions
This file was deleted.

0 commit comments

Comments
 (0)