Skip to content

Commit

Permalink
Move the test data file and add some comments
Browse files Browse the repository at this point in the history
Mainly so it is clear where the file is being used from.
  • Loading branch information
aucampia committed Mar 13, 2023
1 parent 82677ee commit d74ccad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions test/data/contrived/README.md
Original file line number Diff line number Diff line change
@@ -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.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix ex: <http://example.org/multiline-string-example#> .

# 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
# </test/test_namespace/test_definednamespace_creator.py>.

<http://example.org/multiline-string-example>
a owl:Ontology .

Expand All @@ -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 <http://example.org/multiline-string-example>;
.
.
5 changes: 1 addition & 4 deletions test/test_namespace/test_definednamespace_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}...")
Expand Down

0 comments on commit d74ccad

Please sign in to comment.