Пример #1
0
    def test_object_not_found(self):

        p = RDFProfile(_default_graph())

        _object = p._object(URIRef('http://example.org/datasets/1'),
                            DCT.unknown_property)

        eq_(_object, None)
Пример #2
0
    def test_object(self):

        p = RDFProfile(_default_graph())

        _object = p._object(URIRef('http://example.org/datasets/1'), DCT.title)

        assert isinstance(_object, Literal)
        eq_(str(_object), 'Test Dataset 1')