The surf.namespace Module

surf.namespace.all()[source]

Return all the namespaces registered as a dict.

surf.namespace.base(property)[source]

Return the base part of a URI, property is a string denoting a URI.

>>> print ns.base('http://sometest.ns/ns#symbol')
http://sometest.ns/ns#
surf.namespace.get_namespace(base)[source]

Return the namespace short hand notation and the URI based on the URI base.

The namespace is a rdf.namespace.Namespace

>>> key, namespace = ns.get_namespace('http://sometest.ns/ns#')
>>> print key, namespace
TEST, http://sometest.ns/ns#
surf.namespace.get_namespace_url(prefix)[source]

Return the namespace URI registered under the specified prefix

>>> url = ns.get_namespace_url('TEST')
>>> print url
http://sometest.ns/ns#
surf.namespace.get_prefix(uri)[source]

The inverse function of get_namespace_url(prefix), return the prefix of a namespace based on its URI.

>>> name = ns.get_prefix(Namespace('http://sometest.ns/ns#'))
>>> # true, if one registered the uri to the "test" prefix beforehand
>>> print name
TEST
surf.namespace.register(**namespaces)[source]

Register a namespace with a shorthand notation with the namespace manager. The arguments are passed in as key-value pairs.

>>> ns.register(test='http://sometest.ns/ns#')
>>> print ns.TEST
http://sometest.ns/ns#
surf.namespace.register_fallback(namespace)[source]

Register a fallback namespace to use when creating resource without specifying subject.

>>> ns.register_fallback('http://example.com/fallback#')
>>> Person = session.get_class(ns.FOAF.Person)
>>> p = Person()
>>> p.subject
http://example.com/fallback#093d460a-a768-49a9-8813-aa5b321d94a8
surf.namespace.symbol(property)[source]

Return the part of a URI after the last / or #, property is a string denoting a URI

>>> print ns.symbol('http://sometest.ns/ns#symbol')
symbol

Registered general purpose namespaces

The description of each registered namespace was collected from the respective URL describing the ontology / vocabulary

surf.namespace.XMLNS

http://www.w3.org/XML/1998/namespace

The “xml:” Namespace

surf.namespace.SKOS

http://www.w3.org/2004/02/skos/core#

SKOS Simple Knowledge Organization System Namespace Document

surf.namespace.XSD

http://www.w3.org/2001/XMLSchema#

XML Schema

surf.namespace.OWL

http://www.w3.org/2002/07/owl#

The Web Ontology Language, This file specifies in RDF Schema format the built-in classes and properties that together form the basis of the RDF/XML syntax of OWL Full, OWL DL and OWL Lite. We do not expect people to import this file explicitly into their ontology. People that do import this file should expect their ontology to be an OWL Full ontology.

surf.namespace.VS

http://www.w3.org/2003/06/sw-vocab-status/ns#

SemWeb Vocab Status ontology, An RDF vocabulary for relating SW vocabulary terms to their status.

surf.namespace.WOT

http://xmlns.com/wot/0.1/

Web Of Trust RDF Ontology

surf.namespace.DC

http://purl.org/dc/elements/1.1/

DCMI Namespace for the Dublin Core Metadata Element Set, Version 1.1

surf.namespace.IBIS

http://purl.org/ibis#

IBIS Vocabulary, Issue-Based Information Systems (IBIS) is a collaborative problem analysis and solving technique.

surf.namespace.SIOC

http://rdfs.org/sioc/ns#

SIOC (Semantically-Interlinked Online Communities) is an ontology for describing the information in online communities.

surf.namespace.SIOC_TYPES

http://rdfs.org/sioc/types#

Extends the SIOC Core Ontology (Semantically-Interlinked Online Communities) by defining subclasses and subproperties of SIOC terms.

surf.namespace.SIOC_SERVICES

http://rdfs.org/sioc/services#

Extends the SIOC Core Ontology (Semantically-Interlinked Online Communities) by defining basic information on community-related web services.

surf.namespace.ATOM

http://atomowl.org/ontologies/atomrdf#

The ATOM OWL vocabulary

surf.namespace.EXIF

http://www.w3.org/2003/12/exif/ns/

Vocabulary to describe an Exif format picture data. All Exif 2.2 tags are defined as RDF properties, as well as several terms to help this schema.

surf.namespace.ANNOTEA

http://www.w3.org/2002/01/bookmark#

The Annotea Bookmark Schema, describing properties used to define instances of bookmarks, topics, and shortcuts.

surf.namespace.RESUME

http://captsolo.net/semweb/resume/cv.rdfs#

the Resume RDF schema

surf.namespace.REVIEW

http://www.isi.edu/webscripter/communityreview/abstract-review-o#

The upper ontology for all semantic web community reviews

surf.namespace.CALENDAR

http://www.w3.org/2002/12/cal/icaltzd#

W3C Calendar vocabulary

surf.namespace.ANNOTATION

http://www.w3.org/2000/10/annotation-ns#

Annotea Annotation Schema

surf.namespace.DOAP

http://usefulinc.com/ns/doap#

Description of a Project (DOAP) vocabulary, The Description of a Project (DOAP) vocabulary, described using W3C RDF Schema and the Web Ontology Language.

surf.namespace.FOAF

http://xmlns.com/foaf/0.1/

FOAF Vocabulary Specification. FOAF is a collaborative effort amongst Semantic Web developers on the FOAF (foaf-dev@lists.foaf-project.org) mailing list. The name ‘FOAF’ is derived from traditional internet usage, an acronym for “Friend of a Friend”

surf.namespace.GR

http://purl.org/goodrelations/v1#

GoodRelations is a standardized vocabulary for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.

surf.namespace.WIKIONT

http://sw.deri.org/2005/04/wikipedia/wikiont.owl

WIKI vocabulary

surf.namespace.WORDNET

http://xmlns.com/wordnet/1.6/

Wordnet vocabulary

surf.namespace.GEO

http://www.w3.org/2003/01/geo/wgs84_pos#

WGS84 Geo Positioning: an RDF vocabulary, A vocabulary for representing latitude, longitude and altitude information in the WGS84 geodetic reference datum. Version $Id: wgs84_pos.rdf,v 1.22 2009/04/20 15:00:30 timbl Exp $. See http://www.w3.org/2003/01/geo/ for more details.

surf.namespace.PIM

http://www.w3.org/2000/10/swap/pim/contact#

PIM vocabulary

surf.namespace.IMDB

http://www.csd.abdn.ac.uk/~ggrimnes/dev/imdb/IMDB#

The Internet Movie Database vocabulary, IMDB

surf.namespace.CONTACT

http://www.w3.org/2000/10/swap/pim/contact#

The PIM CONTACT vocabulary

surf.namespace.MARCONT

http://www.marcont.org/ontology#

MarcOnt Ontology Specification, The goal of MarcOnt bibliographic ontology is to provide a uniform bibliographic description format. It should capture concepts from existing formats such as Bibtex, Dublin Core, MARC21.

surf.namespace.XFOAF

http://www.foafrealm.org/xfoaf/0.1/

FOAFRealm Ontology Specification, Proposed FOAFRealm (Friend-of-a-Friend Realm) system allows to take advantage of social networks and FOAF profiles in user profile management systems. However, the FOAF standard must be enriched with new concepts and properties that are described in this document. The enriched version is called FOAFRealm.

surf.namespace.JDL_STRUCTURE

http://www.jeromedl.org/structure#

JeromeDL Ontology Specification, The structure ontology is used at the bottom layer in JeromeDL. It is used to handle typical tasks required from a digital objects repository, that is, it keeps track of physical representation of resources, their structure and provenance. The structure ontology provides means for a flexible and extendable electronic representation of objects. Such flexibility is especially significant in expressing relations to other resources

surf.namespace.JONTO_PKT

http://www.corrib.org/jonto/pkt#

JONTO PKT (JeromeDL) vocabulary

surf.namespace.JONTO_DDC

http://www.corrib.org/jonto/ddc#

JONTO DDC (JeromeDL) vocabulary

surf.namespace.CORRIB_TAX

http://jonto.corrib.org/taxonomies#

CORRIB Taxonomies (JeromeDL) vocabulary

surf.namespace.SERENITY3

http://serenity.deri.org/imdb#

The SERENITY vocabulary

surf.namespace.IDEAS

http://protege.stanford.edu/rdf

The IDEAS vocabulary, PROTEGE

surf.namespace.BIBO

http://purl.org/ontology/bibo/

The Bibliographic Ontology, The Bibliographic Ontology describe bibliographic things on the semantic Web in RDF. This ontology can be used as a citation ontology, as a document classification ontology, or simply as a way to describe any kind of document in RDF. It has been inspired by many existing document description metadata formats, and can be used as a common ground for converting other bibliographic data sources.

surf.namespace.FRBR

http://purl.org/vocab/frbr/core#

Expression of Core FRBR Concepts in RDF, This vocabulary is an expression in RDF of the concepts and relations described in the IFLA report on the Functional Requirements for Bibliographic Records (FRBR).

surf.namespace.MO

http://purl.org/ontology/mo/

Music Ontology Specification, The Music Ontology Specification provides main concepts and properties fo describing music (i.e. artists, albums, tracks, but also performances, arrangements, etc.) on the Semantic Web. This document contains a detailed description of the Music Ontology.

surf.namespace.VCARD

http://nwalsh.com/rdf/vCard#

This ontology attempts to model a subset of vCards in RDF using modern (circa 2005) RDF best practices. The subset selected is the same subset that the microformats community has adopted for use in hCard

surf.namespace.VANN

http://purl.org/vocab/vann/

VANN: A vocabulary for annotating vocabulary descriptions, This document describes a vocabulary for annotating descriptions of vocabularies with examples and usage notes.

surf.namespace.EVENT

http://purl.org/NET/c4dm/event.owl#

The Event Ontology, This document describes the Event ontology developed in the Centre for Digital Music in Queen Mary, University of London.

surf.namespace.VS

http://www.w3.org/2003/06/sw-vocab-status/ns#

SemWeb Vocab Status ontology, An RDF vocabulary for relating SW vocabulary terms to their status.

surf.namespace.TIME

http://www.w3.org/2006/time#

An OWL Ontology of Time (OWL-Time), A paper, “An Ontology of Time for the Semantic Web”, that explains in detail about a first-order logic axiomatization of OWL-Time can be found at:

More materials about OWL-Time:

surf.namespace.WGS84_POS

http://www.w3.org/2003/01/geo/wgs84_pos#

WGS84 Geo Positioning: an RDF vocabulary, A vocabulary for representing latitude, longitude and altitude information in the WGS84 geodetic reference datum. See http://www.w3.org/2003/01/geo/ for more details.

surf.namespace.BIBO_ROLES

http://purl.org/ontology/bibo/roles/

The BIBO Roles vocabulary

surf.namespace.BIBO_DEGREES

http://purl.org/ontology/bibo/degrees/

The BIBO Degrees vocabulary

surf.namespace.BIBO_EVENTS

http://purl.org/ontology/bibo/events/

The BIBO Events vocabulary

surf.namespace.BIBO_STATUS

http://purl.org/ontology/bibo/status/

The BIBO Status vocabulary

surf.namespace.FRESNEL

http://www.w3.org/2004/09/fresnel#

Fresnel Lens and Format Core Vocabulary, OWL Full vocabulary for defining lenses and formats on RDF models.

surf.namespace.DCTERMS

http://purl.org/dc/terms/

DCMI Namespace for metadata terms in the http://purl.org/dc/terms/ namespace

surf.namespace.DBPEDIA

http://dbpedia.org/property/

DBpedia, An Entity in Data Space: dbpedia.org

surf.namespace.YAGO

http://dbpedia.org/class/yago/

DBpedia YAGO Classes, An Entity in Data Space: dbpedia.org

surf.namespace.LUBM

http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#

Univ-bench Ontology, An university ontology for benchmark tests

surf.namespace.DBLP

http://www4.wiwiss.fu-berlin.de/dblp/terms.rdf#

DBLP vocabulary

surf.namespace.FTI

http://franz.com/ns/allegrograph/2.2/textindex/

Franz AllegroGraph, namespace for Free Text Indexing, used by AllegroGraph to specify predicates that can be used in SPARQL queries to perform free text indexing

surf.namespace.SURF

http://code.google.com/p/surfrdf/

The SuRF namespace is used internally by surf to generate unique subjects for resources if a subject is not provided

Table Of Contents

Previous topic

The surf.exc Module

Next topic

The surf.rdf module

This Page