Namespace Declarations

In addition to the following RDF namespace declarations, this module conveniently works around some refactoring that RDFLib has experienced to make importing the Namespace class more uniform.

ordf.namespace.bind_ns(g, namespaces={'owl': Namespace('http://www.w3.org/2002/07/owl#'), 'scn': Namespace('http://purl.org/okfn/obp/scn#'), 'gr': Namespace('http://bibliographica.org/schema/graph#'), 'rdaRelGr2': Namespace('http://metadataregistry.org/uri/schema/RDARelationshipsGR2/'), 'dcam': Namespace('http://purl.org/dc/dcam/'), 'sccs': Namespace('http://purl.org/okfn/obp/sccs#'), 'dbpprop': Namespace('http://dbpedia.org/property/'), 'cs': Namespace('http://purl.org/vocab/changeset/schema#'), 'sdmxdim': Namespace('http://purl.org/linked-data/sdmx/2009/dimension#'), 'uuid': Namespace('urn:uuid:'), 'dces': Namespace('http://purl.org/dc/elements/1.1/'), 'sdmxattr': Namespace('http://purl.org/linked-data/sdmx/2009/attribute#'), 'sdmxsubject': Namespace('http://purl.org/linked-data/sdmx/2009/subject#'), 'lccls': Namespace('http://purl.org/okfn/obp/lccls#'), 'bio': Namespace('http://purl.org/vocab/bio/0.1/'), 'relationship': Namespace('http://purl.org/vocab/relationship/'), 'void': Namespace('http://rdfs.org/ns/void#'), 'dc': Namespace('http://purl.org/dc/terms/'), 'ical': Namespace('http://www.w3.org/2002/12/cal/ical#'), 'obpl': Namespace('http://purl.org/okfn/obp/lens/'), 'wdrs': Namespace('http://www.w3.org/2007/05/powder-s#'), 'list': Namespace('http://www.w3.org/2000/10/swap/list#'), 'xsd': Namespace('http://www.w3.org/2001/XMLSchema#'), 'wot': Namespace('http://xmlns.com/wot/0.1/'), 'fresnel': Namespace('http://www.w3.org/2004/09/fresnel#'), 'frbr': Namespace('http://purl.org/vocab/frbr/core#'), 'nbn': Namespace('http://purl.org/okfn/obp/nbn#'), 'sioc': Namespace('http://rdfs.org/sioc/ns#'), 'skos': Namespace('http://www.w3.org/2004/02/skos/core#'), 'rdfs': rdf.namespace.ClosedNamespace('http://www.w3.org/2000/01/rdf-schema#'), 'ordf': Namespace('http://purl.org/NET/ordf/'), 'rev': Namespace('http://purl.org/stuff/rev#'), 'rdfg': Namespace('http://www.w3.org/2004/03/trix/rdfg-1/'), 'scovo': Namespace('http://purl.org/NET/scovo#'), 'foaf': Namespace('http://xmlns.com/foaf/0.1/'), 'gnd': Namespace('http://d-nb.info/gnd/'), 'bibo': Namespace('http://purl.org/ontology/bibo/'), 'rdaGr2': Namespace('http://RDVocab.info/ElementsGr2/'), 'doap': Namespace('http://usefulinc.com/ns/doap#'), 'sdmxconcept': Namespace('http://purl.org/linked-data/sdmx/2009/concept#'), 'sdmxcode': Namespace('http://purl.org/linked-data/sdmx/2009/code#'), 'ore': Namespace('http://www.openarchives.org/ore/terms/'), 'log': Namespace('http://www.w3.org/2000/10/swap/log#'), 'sdmxmeasure': Namespace('http://purl.org/linked-data/sdmx/2009/measure#'), 'sdmx': Namespace('http://purl.org/linked-data/sdmx#'), 'rdf': rdf.namespace.ClosedNamespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#'), 'time': Namespace('http://www.w3.org/2006/time#'), 'opmv': Namespace('http://purl.org/net/opmv/ns#'), 'obp': Namespace('http://purl.org/okfn/obp#')})[source]

Given an Graph, bind the namespaces present in the dictionary in this module to it for more readable serialisations.

Parameters:g – an instance of rdflib.graph.Graph.
ordf.namespace.register_ns(prefix, ns)[source]

Register a namespace for use by ORDF

Parameters:
  • prefix – the namespace prefix that should be used
  • namespace – an instance of ordf.namespace.Namespace
ordf.namespace.namespaces

A dictionary containing all of the namespaces defined here. The keys are the names of the namespaces and the values are the namespaces themselves.

ordf.namespace.BIBO
ordf.namespace.BIO
ordf.namespace.CS
ordf.namespace.DBPPROP
ordf.namespace.DCES
ordf.namespace.DC
ordf.namespace.DCAM
ordf.namespace.DOAP
ordf.namespace.FOAF
ordf.namespace.FRBR
ordf.namespace.FRESNEL
ordf.namespace.GND
ordf.namespace.GR
ordf.namespace.LIST
ordf.namespace.LOG
ordf.namespace.OPMV
ordf.namespace.ORDF
ordf.namespace.ORE
ordf.namespace.OWL
ordf.namespace.RDAGR2
ordf.namespace.RDARELGR2
ordf.namespace.RELATIONSHIP
ordf.namespace.SCOVO
ordf.namespace.SKOS
ordf.namespace.TRIG
ordf.namespace.VOID
ordf.namespace.WOT
ordf.namespace.UUID

Previous topic

Object Description Mapper

Next topic

Messaging and Storage Subsystem

This Page