# vocab - definitions and human-readable names for metadata terms # # Copyright 2013 Commons Machinery http://commonsmachinery.se/ # # Authors: Artem Popov <*****@*****.**> # # Distributed under an GPLv2 license, please see LICENSE in the top dir. import sys from . import Term from RDFMetadata import model NS_URI = "http://www.w3.org/1999/xhtml/vocab#" NS_PREFIX = "xhv" license = Term( uri=NS_URI + "license", qname=model.QName(NS_URI, NS_PREFIX, "license"), label="License", desc="license refers to a resource that defines the associated license.")
# vocab - definitions and human-readable names for metadata terms # # Copyright 2013 Commons Machinery http://commonsmachinery.se/ # # Authors: Artem Popov <*****@*****.**> # # Distributed under an GPLv2 license, please see LICENSE in the top dir. import sys from . import Term from RDFMetadata import model NS_URI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" NS_PREFIX = "rdf" type = Term(uri=NS_URI + "type", qname=model.QName(NS_URI, NS_PREFIX, "type"), label="Type", desc="The subject is an instance of a class.")
# Copyright 2013 Commons Machinery http://commonsmachinery.se/ # # Authors: Artem Popov <*****@*****.**> # # Distributed under an GPLv2 license, please see LICENSE in the top dir. import sys from . import Term from RDFMetadata import model NS_URI = "http://purl.org/dc/elements/1.1/" NS_PREFIX = "dc" contributor = Term( uri=NS_URI + "contributor", qname=model.QName(NS_URI, NS_PREFIX, "contributor"), label="Contributor", desc="An entity responsible for making contributions to the resource.") coverage = Term( uri=NS_URI + "coverage", qname=model.QName(NS_URI, NS_PREFIX, "coverage"), label="Coverage", desc= "The spatial or temporal topic of the resource, the spatial applicability of the resource, or the jurisdiction under which the resource is relevant." ) creator = Term(uri=NS_URI + "creator", qname=model.QName(NS_URI, NS_PREFIX, "creator"), label="Creator", desc="An entity primarily responsible for making the resource.")
def get_property(self): ns_prefix = vocab.vocabularies[ self.property_ns_entry.get_text()].NS_PREFIX return model.QName(self.property_ns_entry.get_text(), ns_prefix, self.property_name_entry.get_text())
# # Copyright 2013 Commons Machinery http://commonsmachinery.se/ # # Authors: Artem Popov <*****@*****.**> # # Distributed under an GPLv2 license, please see LICENSE in the top dir. import sys from . import Term from RDFMetadata import model NS_URI = "http://purl.org/dc/terms/" NS_PREFIX = "dcterms" abstract = Term(uri=NS_URI + "abstract", qname=model.QName(NS_URI, NS_PREFIX, "abstract"), label="Abstract", desc="A summary of the resource.") accessRights = Term( uri=NS_URI + "accessRights", qname=model.QName(NS_URI, NS_PREFIX, "accessRights"), label="Access Rights", desc= "Information about who can access the resource or an indication of its security status." ) accrualMethod = Term( uri=NS_URI + "accrualMethod", qname=model.QName(NS_URI, NS_PREFIX, "accrualMethod"), label="Accrual Method",
# Note: # this namespace only contains terms for properties. # cc resource types are commented out (below) # until we figure out how to properly plug them into # the editor. import sys from . import Term from RDFMetadata import model NS_URI = "http://creativecommons.org/ns#" NS_PREFIX = "cc" attributionName = Term(uri=NS_URI + "attributionName", qname=model.QName(NS_URI, NS_PREFIX, "attributionName"), label="Attribution Name", desc="") attributionURL = Term(uri=NS_URI + "attributionURL", qname=model.QName(NS_URI, NS_PREFIX, "attributionURL"), label="Attribution URL", desc="") deprecatedOn = Term(uri=NS_URI + "deprecatedOn", qname=model.QName(NS_URI, NS_PREFIX, "deprecatedOn"), label="Deprecated On", desc="") jurisdiction = Term(uri=NS_URI + "jurisdiction", qname=model.QName(NS_URI, NS_PREFIX, "jurisdiction"),