From d74ccad7d95e84faf76c5fa6314a5352a5080f6e Mon Sep 17 00:00:00 2001 From: Iwan Aucamp Date: Mon, 13 Mar 2023 18:38:14 +0100 Subject: [PATCH] Move the test data file and add some comments Mainly so it is clear where the file is being used from. --- test/data/contrived/README.md | 5 +++++ .../{defined_namespaces => contrived}/multiple-comments.ttl | 6 +++++- test/test_namespace/test_definednamespace_creator.py | 5 +---- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 test/data/contrived/README.md rename test/data/{defined_namespaces => contrived}/multiple-comments.ttl (72%) diff --git a/test/data/contrived/README.md b/test/data/contrived/README.md new file mode 100644 index 000000000..fd1e0e7d3 --- /dev/null +++ b/test/data/contrived/README.md @@ -0,0 +1,5 @@ +# Contrived Test Data + +This directory contains test data contrived for specific purposes. Files in this +directory should clearly indicate their purpose with a comment. + diff --git a/test/data/defined_namespaces/multiple-comments.ttl b/test/data/contrived/multiple-comments.ttl similarity index 72% rename from test/data/defined_namespaces/multiple-comments.ttl rename to test/data/contrived/multiple-comments.ttl index 4914b6af1..a2c073712 100644 --- a/test/data/defined_namespaces/multiple-comments.ttl +++ b/test/data/contrived/multiple-comments.ttl @@ -2,6 +2,10 @@ @prefix owl: . @prefix ex: . +# This file contains a RDF class with multiple rdfs:comment properties and is +# used to verify the RDFLib defined namespace creator. It is used in +# . + a owl:Ontology . @@ -10,4 +14,4 @@ ex:SomeClass a rdfs:Class, owl:Class; rdfs:comment "If one uses multiple comment properties, "@en; rdfs:comment "then it should still only create a single class variable."@en; rdfs:isDefinedBy ; -. \ No newline at end of file +. diff --git a/test/test_namespace/test_definednamespace_creator.py b/test/test_namespace/test_definednamespace_creator.py index 5d9931bea..8866a05d9 100644 --- a/test/test_namespace/test_definednamespace_creator.py +++ b/test/test_namespace/test_definednamespace_creator.py @@ -129,10 +129,7 @@ def test_definednamespace_creator_multiple_comments(): / "defined_namespace_creator.py" ) multiple_comments_data_file = ( - Path(__file__).parent.parent - / "data" - / "defined_namespaces" - / "multiple-comments.ttl" + Path(__file__).parent.parent / "data" / "contrived" / "multiple-comments.ttl" ) print("\n") print(f"Using {definednamespace_script}...")