Skip to content

Commit 9610157

Browse files
committed
Rename Examples/ to data/
Examples should be the code examples.
1 parent 8a7138b commit 9610157

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,24 @@ Sample Tag/Value parsing Usage:
3939

4040
The file `parse_tv_ex.py` has a working example.
4141

42-
Try running `python parse_tv_ex.py 'Examples/SPDXSimpleTag.tag' `
42+
Try running `python parse_tv_ex.py 'data/SPDXSimpleTag.tag' `
4343

4444
The file `write_tv_ex.py` provides an example of writing tag/value files.
4545

4646
Run `python write_tv_ex.py sample.tag` to test it.
4747

4848
The file `pp_tv.py` demonstrates how to parse a tag/value file and print it out.
49-
To test it run `python pp_tv.py Examples/SPDXTagExample.tag pretty.tag`.
49+
To test it run `python pp_tv.py data/SPDXTagExample.tag pretty.tag`.
5050

5151
The file `parse_rdf.py` demonstrates how to parse a RDF/xml file and print out
5252
document information.
53-
To test it run `python parse_rdf.py Examples/SPDXRdfExample.rdf`
53+
To test it run `python parse_rdf.py data/SPDXRdfExample.rdf`
5454

5555
The file `rdf_to_tv.py` demonstrates how to convert a RDF file to a tag/value one.
56-
To test it run `python rdf_to_tv.py Examples/SPDXRdfExample.rdf converted.tag`
56+
To test it run `python rdf_to_tv.py data/SPDXRdfExample.rdf converted.tag`
5757

5858
The file `rdf_pp.py` demonstrates how to pretty print a RDF file,
59-
to test it run `python rdf_pp.py Examples/SPDXRdfExample.rdf pretty.rdf`
59+
to test it run `python rdf_pp.py data/SPDXRdfExample.rdf pretty.rdf`
6060

6161
Installation:
6262
=============

tests/conversion_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def write_rdf_file(self, document, file_name):
5656
rdfwriter.write_document(document, out)
5757

5858
def test_tagvalue_rdf(self):
59-
doc, error = self.parse_tagvalue_file('Examples/SPDXTagExample.tag')
59+
doc, error = self.parse_tagvalue_file('data/SPDXTagExample.tag')
6060
assert not error
6161
assert doc.validate([])
6262
filename = self.random_file(10, '.rdf')
@@ -66,7 +66,7 @@ def test_tagvalue_rdf(self):
6666
assert doc.validate([])
6767

6868
def test_rdf_rdf(self):
69-
doc, error = self.parse_rdf_file('Examples/SPDXRdfExample.rdf')
69+
doc, error = self.parse_rdf_file('data/SPDXRdfExample.rdf')
7070
assert not error
7171
assert doc.validate([])
7272
filename = self.random_file(10, '.rdf')
@@ -76,7 +76,7 @@ def test_rdf_rdf(self):
7676
assert doc.validate([])
7777

7878
def test_tagvalue_tagvalue(self):
79-
doc, error = self.parse_tagvalue_file('Examples/SPDXTagExample.tag')
79+
doc, error = self.parse_tagvalue_file('data/SPDXTagExample.tag')
8080
assert not error
8181
assert doc.validate([])
8282
filename = self.random_file(10, '.tag')
@@ -86,7 +86,7 @@ def test_tagvalue_tagvalue(self):
8686
assert doc.validate([])
8787

8888
def test_rdf_tagvalue(self):
89-
doc, error = self.parse_rdf_file('Examples/SPDXRdfExample.rdf')
89+
doc, error = self.parse_rdf_file('data/SPDXRdfExample.rdf')
9090
assert not error
9191
assert doc.validate([])
9292
filename = self.random_file(10, '.tag')

0 commit comments

Comments
 (0)