# Path: rdfalchemy/samples/doap.py
# FOAF = Namespace("http://xmlns.com/foaf/0.1/")
# 
# Path: rdfalchemy/samples/foaf.py
# class Person(Agent):
#     rdf_type = FOAF.Person
#     first = rdfSingle(FOAF.firstName)
#     last = rdfSingle(FOAF.surname)
#     givenname = rdfSingle(FOAF.givenname)
#     surname = rdfSingle(FOAF.surname)


import rdfalchemy
import logging
from rdfalchemy.samples.doap import FOAF
from rdfalchemy.samples.foaf import Person
from rdflib import ConjunctiveGraph

log = logging.getLogger('rdfalchemy')
if not log.handlers:
    log.addHandler(logging.StreamHandler())
#log.setLevel(10)


Person.db = ConjunctiveGraph()


def test_start():
    assert len(Person.db) == 0
    Person(last="Cooper")
    assert len(Person.db) == 2


Person.m = rdfalchemy.rdfMultiple(FOAF.multi)

# Path: rdfalchemy/samples/doap.py
# FOAF = Namespace("http://xmlns.com/foaf/0.1/")
# 
# Path: rdfalchemy/samples/foaf.py
# class Person(Agent):
#     rdf_type = FOAF.Person
#     first = rdfSingle(FOAF.firstName)
#     last = rdfSingle(FOAF.surname)
#     givenname = rdfSingle(FOAF.givenname)
#     surname = rdfSingle(FOAF.surname)


# Path: test/count_test.py
import rdfalchemy
import logging
from rdfalchemy.samples.doap import FOAF
from rdfalchemy.samples.foaf import Person
from rdflib import ConjunctiveGraph


log = logging.getLogger('rdfalchemy')
if not log.handlers:
    log.addHandler(logging.StreamHandler())
#log.setLevel(10)


Person.db = ConjunctiveGraph()


def test_start():
    assert len(Person.db) == 0
    Person(last="Cooper")
    assert len(Person.db) == 2


Person.m = rdfalchemy.rdfMultiple(FOAF.multi)

Person.l = rdfalchemy.rdfList(FOAF.list)