From 420de00fe9dc5436be45b939c0fb5278d4eee8ad Mon Sep 17 00:00:00 2001 From: muddymudskipper Date: Mon, 23 Sep 2024 14:26:23 +0200 Subject: [PATCH] fix test vocab namespace --- tests/test_shapes.py | 1 - tests/test_shapes.ttl | 145 ------------------------------------- tests/test_shapes_data.ttl | 2 +- 3 files changed, 1 insertion(+), 147 deletions(-) delete mode 100644 tests/test_shapes.ttl diff --git a/tests/test_shapes.py b/tests/test_shapes.py index 1fc6599..0d067e7 100644 --- a/tests/test_shapes.py +++ b/tests/test_shapes.py @@ -62,5 +62,4 @@ def test_workflow_execution(_setup: pytest.FixtureRequest) -> None: # noqa: PT0 result = Graph().parse(data=get(RESULT_IRI, owl_imports_resolution=False).text) test = Graph().parse(Path(__path__[0]) / "test_shapes.ttl", format="turtle") - assert to_isomorphic(result) == to_isomorphic(test) diff --git a/tests/test_shapes.ttl b/tests/test_shapes.ttl deleted file mode 100644 index b5cb2b3..0000000 --- a/tests/test_shapes.ttl +++ /dev/null @@ -1,145 +0,0 @@ -@prefix ns1: . -@prefix prov: . -@prefix rdf: . -@prefix rdfs: . -@prefix sh: . -@prefix xsd: . - - a ns1:ShapeCatalog ; - rdfs:label "Shapes for https://eccenca.com/shapes_plugin/5072e1e3e96c40389116a6833d9a3867/data/" . - - a sh:NodeShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabProductCategory"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabProductCategory"@en ; - sh:property , - , - , - ; - sh:targetClass . - - a sh:NodeShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabPrice"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabPrice"@en ; - sh:property , - , - , - , - , - ; - sh:targetClass . - - a sh:NodeShape ; - rdfs:label "Entity (prov:)"@en ; - sh:name "Entity (prov:)"@en ; - sh:property , - , - ; - sh:targetClass prov:Entity . - - a sh:NodeShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabService"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabService"@en ; - sh:property , - , - , - , - , - , - , - , - ; - sh:targetClass . - - a sh:NodeShape ; - rdfs:label "Dataset (eccdi:)"@en ; - sh:name "Dataset (eccdi:)"@en ; - sh:property ; - sh:targetClass . - - a sh:PropertyShape ; - rdfs:label "← 5072e1e3e96c40389116a6833d9a3867_vocabhasCategory"@en ; - sh:name "← 5072e1e3e96c40389116a6833d9a3867_vocabhasCategory"@en ; - sh:nodeKind sh:IRI ; - sh:path ; - ns1:inversePath true . - - a sh:PropertyShape ; - rdfs:label "← was derived from (prov:)"@en ; - sh:name "← was derived from (prov:)"@en ; - sh:nodeKind sh:IRI ; - sh:path prov:wasDerivedFrom ; - ns1:inversePath true . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabeligibleFor"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabeligibleFor"@en ; - sh:nodeKind sh:IRI ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabcurrency"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabcurrency"@en ; - sh:nodeKind sh:Literal ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "← 5072e1e3e96c40389116a6833d9a3867_vocabprice"@en ; - sh:name "← 5072e1e3e96c40389116a6833d9a3867_vocabprice"@en ; - sh:nodeKind sh:IRI ; - sh:path ; - ns1:inversePath true . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabhasCategory"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabhasCategory"@en ; - sh:nodeKind sh:IRI ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabprice"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabprice"@en ; - sh:nodeKind sh:IRI ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabname"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabname"@en ; - sh:nodeKind sh:Literal ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabid"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabid"@en ; - sh:nodeKind sh:Literal ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabhasProductManager"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabhasProductManager"@en ; - sh:nodeKind sh:IRI ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "5072e1e3e96c40389116a6833d9a3867_vocabamount"@en ; - sh:name "5072e1e3e96c40389116a6833d9a3867_vocabamount"@en ; - sh:nodeKind sh:Literal ; - sh:path . - - a sh:PropertyShape ; - rdfs:label "was derived from (prov:)"@en ; - sh:name "was derived from (prov:)"@en ; - sh:nodeKind sh:IRI ; - sh:path prov:wasDerivedFrom . - - a sh:PropertyShape ; - rdfs:label "label (rdfs:)"@en ; - sh:name "label (rdfs:)"@en ; - sh:nodeKind sh:Literal ; - sh:path rdfs:label . - - a sh:PropertyShape ; - rdfs:label "type (rdf:)"@en ; - sh:name "type (rdf:)"@en ; - sh:nodeKind sh:IRI ; - sh:path rdf:type . - diff --git a/tests/test_shapes_data.ttl b/tests/test_shapes_data.ttl index 628be22..ce26b01 100644 --- a/tests/test_shapes_data.ttl +++ b/tests/test_shapes_data.ttl @@ -1,4 +1,4 @@ -@prefix ns1: . +@prefix ns1: . @prefix prov: . @prefix rdfs: . @prefix xsd: .