コード例 #1
0
ファイル: test_graph_parser.py プロジェクト: moret/sparse-rdf
def test_there_are_5_templates():
    graph_parser.parse('tests/assets/paper.nt')
    assert 5 == len(graph_parser.templates())
コード例 #2
0
ファイル: test_graph_parser.py プロジェクト: moret/sparse-rdf
def test_hash_acceptedBy_hash_type_is_a_template():
    graph_parser.parse('tests/assets/paper.nt')
    assert [
        u'<http://demo.com/syntax#acceptedBy>',
        u'<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>',
    ] in graph_parser.templates()