Skip to content

Commit 1a0e7f0

Browse files
committed
[test_rdf_reader.py] Add RDF Reader Test Class
1 parent 1c2ceb6 commit 1a0e7f0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test/test_rdf_reader.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import datetime
2+
import unittest
3+
4+
from rdflib import Literal
5+
import odml.format as format
6+
7+
from odml import Property, Section, Document
8+
from odml.tools.rdf_converter import RDFWriter, RDFReader
9+
from odml.tools.parser_utils import ParserException
10+
11+
odmlns = format.Format.namespace()
12+
13+
14+
class TestRDFReader(unittest.TestCase):
15+
16+
def setUp(self):
17+
doc = Document()
18+
sec = Section(name="sec1", type="test", parent=doc)
19+
Section(name="sec2", type="test", parent=sec)
20+
Property(name="prop1", values=[1.3], parent=sec)
21+
22+
self.doc = doc

0 commit comments

Comments
 (0)