summaryrefslogtreecommitdiff
path: root/test/test_mulpath_n3.py
blob: 41885361140d3faf15802e7346460194aadf0cc0 (plain)
1
2
3
4
5
6
7
8
from rdflib import URIRef
from rdflib.paths import ZeroOrMore


def test_mulpath_n3():
    uri = "http://example.com/foo"
    n3 = (URIRef(uri) * ZeroOrMore).n3()
    assert n3 == "<" + uri + ">*"