BASE_URI=http://example.org/foaf/

TTL2RDF=rapper -q \
  -i turtle \
  -o rdfxml \
  -f "xmlns:dc='http://purl.org/dc/elements/1.1/'" \
  -f "xmlns:foaf='http://xmlns.com/foaf/0.1/'" \
  -f "xmlns:bio='http://purl.org/vocab/bio/0.1/'" \
  -f "xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema\#'"

.SUFFIXES: .ttl .rdf

.ttl.rdf:
	$(TTL2RDF) $? $(BASE_URI)$? > $@

TURTLE_FILES=aliceFoaf.ttl bobFoaf.ttl celineFoaf.ttl danFoaf.ttl eveFoaf.ttl

RDF_FILES=$(TURTLE_FILES:%.ttl=%.rdf)

all: $(RDF_FILES)

clean:
	rm -f $(RDF_FILES)
