Esempio n. 1
0
    def test_properties_as_xml_snippet(self):
        from clld.lib.rdf import properties_as_xml_snippet

        properties_as_xml_snippet(
            'subject', [('foaf:name', 'a name'), ('foaf:homepage', 'http://example.org')])

        p = properties_as_xml_snippet(
            'http://example.org', [('dcterms:title', 'ttt')])
        assert 'ttt' in p
Esempio n. 2
0
def test_properties_as_xml_snippet():
    from clld.lib.rdf import properties_as_xml_snippet

    properties_as_xml_snippet('subject',
                              [('foaf:name', 'a name'),
                               ('foaf:homepage', 'http://example.org')])

    p = properties_as_xml_snippet('http://example.org',
                                  [('dcterms:title', 'ttt')])
    assert 'ttt' in p
Esempio n. 3
0
    def test_properties_as_xml_snippet(self):
        from clld.lib.rdf import properties_as_xml_snippet

        properties_as_xml_snippet(
            'subject', [('foaf:name', 'a name'), ('foaf:homepage', 'http://example.org')])
Esempio n. 4
0
    def test_properties_as_xml_snippet(self):
        from clld.lib.rdf import properties_as_xml_snippet

        properties_as_xml_snippet('subject',
                                  [('foaf:name', 'a name'),
                                   ('foaf:homepage', 'http://example.org')])