modules/rdf/vocab.zzm

rdf-0.0.3 documentation

NAME

rdf/vocab - Common RDF vocabulary helpers.

SYNOPSIS

  from rdf/vocab import rdf_type, rdfs_class, xsd;

  let type := rdf_type();
  let integer := xsd("integer");

DESCRIPTION

This module exports small helpers for constructing IRI terms in the RDF, RDFS, OWL, and XSD namespaces, plus commonly used vocabulary terms.

EXPORTS

Functions

  • rdf(String local)

    Returns an IRI in the RDF namespace.

  • rdfs(String local)

    Returns an IRI in the RDFS namespace.

  • owl(String local)

    Returns an IRI in the OWL namespace.

  • xsd(String local)

    Returns an IRI in the XML Schema namespace.

  • rdf_type

    Returns rdf:type.

  • rdfs_class

    Returns rdfs:Class.

  • rdfs_resource

    Returns rdfs:Resource.

  • rdfs_subclass_of

    Returns rdfs:subClassOf.

  • rdfs_subproperty_of

    Returns rdfs:subPropertyOf.

  • rdfs_domain

    Returns rdfs:domain.

  • rdfs_range

    Returns rdfs:range.

  • owl_class

    Returns owl:Class.

  • owl_thing

    Returns owl:Thing.

  • owl_same_as

    Returns owl:sameAs.

COPYRIGHT AND LICENCE

rdf/vocab is copyright Toby Inkster.

It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.