rdfns(1p)

rdfns1p

Usage

    # look up namespaces in several formats
    $ rdfns foaf.xmlns foaf.n3 dbpedia.sparql foaf.json
    # look up a prefixed URI
    $ rdfns rdfs:seeAlso
    # look up multiple URIs at a given version
    $ rdfns 20111102 foaf,owl.ttl
    # lookup preferred prefix
    $ rdfns http://www.w3.org/2003/01/geo/wgs84_pos#
    
    # create short name of an URL
    $ rdfns http://purl.org/dc/elements/1.1/title
    # map prefix to preferred prefix
    $ rdfns wgs.prefix
    # show all options and some examples
    $ rdfns --help
    # show version
    $ rdfns --version
    # list available dates
    $ rdfns --dates

Formats

ttl, n3, notation3

RDF/Turtle or Notation3 syntax:

    @prefix foaf: <http://xmlns.com/foaf/0.1/> .
sparql

SPARQL syntax:

    PREFIX foaf: <http://xmlns.com/foaf/0.1/>
txt

Tabulator-separated:

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

XML namespace declaration

    xmlns:foaf="http://xmlns.com/foaf/0.1/"
json

JSON key-values, for instance for JSON-LD. Multiple entries are comma-separated.

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

BEACON format syntax:

    #PREFIX: http://xmlns.com/foaf/0.1/
prefix

Maps a prefix to its preferred form, this is the shortest and first in alphabetical order. For instance "rdfns wgs84.prefix" returns prefix "geo".

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12
  6. 13

From librdf-ns-perl 20230619-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.