.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "RDFNS 1p"
.TH RDFNS 1p 2024-01-21 "perl v5.38.2" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH SYNOPSIS
.IX Header "SYNOPSIS"
.Vb 2
\& # 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
.Ve
.SH FORMATS
.IX Header "FORMATS"
.IP "ttl, n3, notation3" 4
.IX Item "ttl, n3, notation3"
RDF/Turtle or Notation3 syntax:
.Sp
.Vb 1
\& @prefix foaf: .
.Ve
.IP sparql 4
.IX Item "sparql"
SPARQL syntax:
.Sp
.Vb 1
\& PREFIX foaf:
.Ve
.IP txt 4
.IX Item "txt"
Tabulator-separated:
.Sp
.Vb 1
\& foaf http://xmlns.com/foaf/0.1/
.Ve
.IP xmlns 4
.IX Item "xmlns"
XML namespace declaration
.Sp
.Vb 1
\& xmlns:foaf="http://xmlns.com/foaf/0.1/"
.Ve
.IP json 4
.IX Item "json"
JSON key-values, for instance for JSON-LD. Multiple entries are comma-separated.
.Sp
.Vb 1
\& "foaf": "http://xmlns.com/foaf/0.1/"
.Ve
.IP beacon 4
.IX Item "beacon"
BEACON format syntax:
.Sp
.Vb 1
\& #PREFIX: http://xmlns.com/foaf/0.1/
.Ve
.IP prefix 4
.IX Item "prefix"
Maps a prefix to its preferred form, this is the shortest and first in
alphabetical order. For instance \f(CW\*(C`rdfns wgs84.prefix\*(C'\fR returns prefix \f(CW\*(C`geo\*(C'\fR.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
This script is internally implemented in App::rdfns, based on RDF::NS.