1RDFNS(1) User Contributed Perl Documentation RDFNS(1)
2
3
4
6 # look up namespaces in several formats
7 $ rdfns foaf.xmlns foaf.n3 dbpedia.sparql foaf.json
8
9 # look up a prefixed URI
10 $ rdfns rdfs:seeAlso
11
12 # look up multiple URIs at a given version
13 $ rdfns 20111102 foaf,owl.ttl
14
15 # lookup preferred prefix
16 $ rdfns http://www.w3.org/2003/01/geo/wgs84_pos#
17
18 # create short name of an URL
19 $ rdfns http://purl.org/dc/elements/1.1/title
20
21 # map prefix to preferred prefix
22 $ rdfns wgs.prefix
23
24 # show all options and some examples
25 $ rdfns --help
26
27 # show version
28 $ rdfns --version
29
30 # list available dates
31 $ rdfns --dates
32
34 ttl, n3, notation3
35 RDF/Turtle or Notation3 syntax:
36
37 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
38
39 sparql
40 SPARQL syntax:
41
42 PREFIX foaf: <http://xmlns.com/foaf/0.1/>
43
44 txt Tabulator-separated:
45
46 foaf http://xmlns.com/foaf/0.1/
47
48 xmlns
49 XML namespace declaration
50
51 xmlns:foaf="http://xmlns.com/foaf/0.1/"
52
53 json
54 JSON key-values, for instance for JSON-LD. Multiple entries are
55 comma-separated.
56
57 "foaf": "http://xmlns.com/foaf/0.1/"
58
59 beacon
60 BEACON format syntax:
61
62 #PREFIX: http://xmlns.com/foaf/0.1/
63
64 prefix
65 Maps a prefix to its preferred form, this is the shortest and first
66 in alphabetical order. For instance "rdfns wgs84.prefix" returns
67 prefix "geo".
68
70 This script is internally implemented in App::rdfns, based on RDF::NS.
71
72
73
74perl v5.36.1 2023-06-19 RDFNS(1)