Skip to content

Commit e8a891b

Browse files
committed
fixed prefix
1 parent a4a025e commit e8a891b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_rdflib_ask.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def tearDownModule(cls) -> None:
3838

3939
def test_ask_filter(self):
4040
q1 = """
41+
PREFIX dct: <http://purl.org/dc/terms/>
4142
ASK {
4243
?s dct:title ?t .
4344
FILTER (?t = "Title")
@@ -48,6 +49,7 @@ def test_ask_filter(self):
4849
self.assertFalse(bool_r)
4950

5051
q2 = """
52+
PREFIX dct: <http://purl.org/dc/terms/>
5153
ASK {
5254
?s dct:title ?t .
5355
FILTER (?t = "Title"@en)
@@ -59,6 +61,7 @@ def test_ask_filter(self):
5961

6062
def test_ask_filter_notIsBlank(self):
6163
q3 = """
64+
PREFIX dct: <http://purl.org/dc/terms/>
6265
ASK {
6366
?s dct:title ?t .
6467
FILTER ( ! isBlank (?s) )
@@ -70,6 +73,7 @@ def test_ask_filter_notIsBlank(self):
7073

7174
def test_ask_filter_isIRI(self):
7275
q4 = """
76+
PREFIX dct: <http://purl.org/dc/terms/>
7377
ASK {
7478
?s dct:title ?t .
7579
FILTER ( isIRI (?s) )
@@ -81,6 +85,7 @@ def test_ask_filter_isIRI(self):
8185

8286
def test_ask_filter_isBlank(self):
8387
q5 = """
88+
PREFIX dct: <http://purl.org/dc/terms/>
8489
ASK {
8590
?s dct:creator ?c .
8691
FILTER ( isBlank (?c) )

0 commit comments

Comments
 (0)