FOOTER = """</rdf:RDF>"""
def make_rdf(input_file, output_file):
s the templates a bove to generate a RDF vocabulary.
+ '''Use templates a to generate a RDF vocabulary.
- Input file should have one resource per line.'''
+ Input files should have one resource per line. The skos:prefLabel
+ and rdfs:isDefinedBy are hardcoded in this script, but could be
+ easily moved to the top of the input file.
+ You can define ceramic subtypes as having a skos:broadMatch of the
+ generic type using a line such::
+ This is not redundant, as it allows for things like::
+ that would be impossible without an explicit definition.'''
input_data = open(input_file).read().splitlines()
output = open(output_file, 'wb')