So here is an entry in rdf format. I’d like to understand why some parts of it seem so convoluted.
<pgterms:file rdf:about="&f;dirs/3/1/9/0/31900/31900-8.zip">
<dc:format><dcterms:IMT><rdf:value>text/plain; charset="iso-8859-1"</rdf:value></dcterms:IMT></dc:format>
<dc:format><dcterms:IMT><rdf:value>application/zip</rdf:value></dcterms:IMT></dc:format>
<dcterms:extent>193120</dcterms:extent>
<dcterms:modified><dcterms:W3CDTF><rdf:value>2010-04-06</rdf:value></dcterms:W3CDTF></dcterms:modified>
<dcterms:isFormatOf rdf:resource="#etext31900" />
</pgterms:file>
In particular, this value:
<dc:format><dcterms:IMT><rdf:value>text/plain; charset="iso-8859-1"</rdf:value></dcterms:IMT></dc:format>
Why does it need both a dcterms:IMT AND an rdf:value portion? This just seems like a lot of bloat for what appears to be little practical benefit. Since it is already using MIME types, it just doesn’t make sense to me.
Why does xml have so many angle brackets my eyes hurt….because it was meant to be read by a parser not by humans.
Your sample is not rdf (rdf is the framework), it is rdf/xml, one possible serialzation of a graph in the framework. Turtle/n3 is much prettier serialization. N-Triples is super simple.
Some very small examples that don’t cover any real details but…
RDF/XML:
N-Triples
N3
EDIT: you can stop reading, this is just the example provided by OP in different serialization. To answer to the question
rdf/xml has to do kind of a stutter-step when there are “Blank Nodes”. you can see below that N-Triples writes the blank nodes out and n3 attempts to make it more obvious what the relations are.
All of these are serialzations of the same rdf graph.
RDF/XML slightly modified (namespace added) so it parses:
N-Triples
N3/Turtle
Note: N3 is even prettier if it’s colored
EDIT 2:
The above describes that there is a bnode but as to why there is one….the
dcterms:modifiedpredicate in the last line of the N3 serialization above could (I wish) be viewed more like:The reason that rdf:value even exists is for triples like:
In addition to units the node could indicate precision or other characteristics of the
objectof the triple.Yeah I kind of hate the
rdf:valuething as damaging to understanding and practicality in favor of epistemological purity.