voc

package
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 179

Documentation

Overview

Package voc is deprecated. Use github.com/cayleygraph/quad/voc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneTo deprecated

func CloneTo(p *Namespaces)

CloneTo adds all global namespaces to a given list.

Deprecated: use github.com/cayleygraph/quad/voc package instead.

func FullIRI deprecated

func FullIRI(iri string) string

FullIRI replaces known prefix in IRI with it's full vocabulary IRI.

FullIRI("rdf:type") // returns "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"

Deprecated: use github.com/cayleygraph/quad/voc package instead.

func Register deprecated

func Register(ns Namespace)

Register adds namespace to a global registered list.

Deprecated: use github.com/cayleygraph/quad/voc package instead.

func RegisterPrefix deprecated

func RegisterPrefix(pref string, ns string)

RegisterPrefix globally associates a given prefix with a base vocabulary IRI.

Deprecated: use github.com/cayleygraph/quad/voc package instead.

func ShortIRI deprecated

func ShortIRI(iri string) string

ShortIRI replaces a base IRI of a known vocabulary with it's prefix.

ShortIRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") // returns "rdf:type"

Deprecated: use github.com/cayleygraph/quad/voc package instead.

Types

type ByFullName

type ByFullName = voc.ByFullName

type Namespace deprecated

type Namespace = voc.Namespace

Namespace is a RDF namespace (vocabulary).

Deprecated: use github.com/cayleygraph/quad/voc package instead.

func List deprecated

func List() []Namespace

List enumerates all registered namespace pairs.

Deprecated: use github.com/cayleygraph/quad/voc package instead.

type Namespaces deprecated

type Namespaces = voc.Namespaces

Namespaces is a set of registered namespaces.

Deprecated: use github.com/cayleygraph/quad/voc package instead.

func Clone deprecated

func Clone() *Namespaces

Clone makes a copy of global namespaces list.

Deprecated: use github.com/cayleygraph/quad/voc package instead.

Directories

Path Synopsis
Package core is deprecated.
Package core is deprecated.
Package rdf is deprecated.
Package rdf is deprecated.
Package rdfs is deprecated.
Package rdfs is deprecated.
Package schema is deprecated.
Package schema is deprecated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL