Graphm2rdf.rb is a converter that takes a flowchart from the Europeana project (in Graphmlz format) to produce a new flowchart (in RDF format) that describes the national copyright regime according to a specifically designed ontology Flow 0.1 (available at http://bedlam.dk/flow/0.1).
Metadata[n].rdf are the metadata files taken from a database describing a particular work in RDF format.
Map.rdf provides a link between the questions from Flowchart to the answers in the metadata files by means of specific Sparql queries.
Reasoner.py is the actual public domain calculator. It takes those 3 files as an input: Flowchart.rdf (national flowchart), map.rdf (national calculator), and metadata.rdf (work metadata), process the whole thing and declares whether or not the work described in metadata.rdf is in the public domain according to the national copyright regime.
Implementing new Flowcharts
- Download the national flowchart in .graphmlz format from outofcopyright.eu
- Run graphm2rdf.rb to generate a flowchart in RDF/Flow format
- Download the metadata for a work in RDF format
- Implement the national calculator by mapping the questions from the flowchart with the answer in the metadata by means of specific Sparql queries. In you are confused as to how to proceed, take a look at the current implementation of the Austrian flowchart (map.rdf) which is the basic model over which all calculators can be derived.
- Test it with several metadata files to make sure that the calculator never fails
- Submit the calculator to pd-discuss for peer-review