Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80566106
test_knora_base.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 1, 10:19
Size
610 B
Mime Type
text/x-python
Expires
Tue, Sep 3, 10:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20233279
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_knora_base.py
View Options
import
unittest
from
rdflib
import
URIRef
from
os
import
sep
,
path
,
remove
from
os.path
import
isfile
import
lxml.etree
as
ET
import
sys
sys
.
path
.
append
(
'py2ttl'
)
from
knora_base
import
KnoraBase
,
KNORA_BASE
class
TestKnoraBase
(
unittest
.
TestCase
):
def
test_init
(
self
):
knora
=
KnoraBase
()
self
.
assertEqual
(
len
(
knora
.
kb
)
>
0
,
True
)
self
.
assertEqual
(
knora
.
Resource
,
URIRef
(
'http://www.knora.org/ontology/knora-base#Resource'
))
self
.
assertEqual
(
KNORA_BASE
.
Resource
,
URIRef
(
'http://www.knora.org/ontology/knora-base#Resource'
))
if
__name__
==
"__main__"
:
unittest
.
main
()
Event Timeline
Log In to Comment