CatchPlus/OpenSKOS — pull request #31 by rwd (2014-08-12 09:25:51+00:00)
Title: In RDF parser, infer dcterms:title from skos:prefLabel if former absent.

Not all SKOS RDF/XML data imported into OpenSKOS will have a dcterms:title or rdfs:label in each rdf:Description, but may have skos:prefLabel values that could instead be taken as the title to use for that concept or scheme.

Where a dcterms:title has not already been set during RDF parsing, this update will attempt to infer one from a skos:prefLabel in the following order:

1. The first skos:prefLabel with xml:lang attribute matching the language selected on the import form, if one exists
2. The first skos:prefLabel with no xml:lang attribute set, if one exists
3. The first skos:prefLabel with any xml:lang attribute set, if one exists