RDFNS(1)
π RDFNS π
okay bestie, listen β this is RDFNS, and it lives in the User Contributed Perl Documentation section of your manual. it's the little command that knows all the namespaces so you don't have to keep forty tabs of vocabularies open like some kind of gremlin π¦
β¨ SYNOPSIS β¨
the vibe check, in command form:
# 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
likeβ¦ it just does things. look up a namespace, turn a URI into a cute short name, ask it what version of the world you're in. main character energy fr π
π FORMATS π
these are all the flavours rdfns speaks. pick your fave, she's fluent in all of them πΈ
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.
no cap, that "shortest and first in alphabetical order" rule is literally the whole personality of prefix. it's not vibes-based, it's alphabetical bestie π«Ά
π SEE ALSO π
This script is internally implemented in App::rdfns, based on RDF::NS.
so like, if you wanna go deeper than the command line β that's where she actually lives π
okay that's the whole page!! this one's from perl v5.42.0, dated 2025-07-25, and that's the official RDFNS(1) experience β go forth and namespace responsibly, bestie π¦β¨π
π¦ where this page comes from
- fedora 43: perl-RDF-NS 20230619-7.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms