Author Topic: updated rdf.trid.xml for Resource Description Framework  (Read 1019 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
updated rdf.trid.xml for Resource Description Framework
« on: May 10, 2022, 08:15:37 PM »
Hello trid users,

some days ago i run ccleaner to to check my registry. It complains about
unused file extension RDF. So i look on my discs for files with that
extension.

When i run trid on such examples most are described correctly as "Resource
Description Framework" by rdf.trid.xml and also generic as "Generic XML
(ASCII)" by xml.trid.xml (See appended rdf-ok/output/trid-v-old.txt)

I found one example ImageMagick.rdf as part of some versions of graphic tool
ImageMagick. Such an example is only described by xml.trid.xml (See appended
output/trid-v-old.txt).

For comparison reason i check these examples by file command utility. When
running file command (version 5.41) the examples are only descreibed generic
as "XML 1.0 document" with mime type "text/xml" (See appended file-5.41.txt
and file-i-5.41.txt in rdf-ok/output).

For comparison reason i also run the file format identification utility
DROID ( See https://sourceforge.net/projects/droid/). This identifies the
examples also only generric as "Extensible Markup Language" with mime types
"application/xml" or "text/xml" by PUID fmt/101 (See appended
rdf-ok/output/droid-rdf.csv).

So i update definition by running tridscan. Afterwards i look what have
changed. In most RDF examples is a link like to server http://www.w3.org/.
But in some ImageMagick.rdf this link there looks like https://w3.org/, but
that of course the same server with other DNS name. So for most examples
this was expressed inside global strings section by line like:
   <String>WWW.W3.ORG</String>
After updating definition this now becomes like:
   <String>W3.ORG</String>

In current definition a reference URL on Mozilla site is used, but the
mentioned page does not exist any more. So i replace it with an archived
version. So this is now expressed by line like:
   <RefURL>
   https://web.archive.org/web/20150910023435/
   https://www.mozilla.org/rdf/doc/
   </RefURL>

Because it is a variant of XML the generic mime type like text/xml is not
wrong, but according to some web sites like IANA and FreeDesktop.org shared
MIME database found for example on web site reposcope.com it get an own
type. That is now expressed by line like:
   <Mime>application/rdf+xml</Mime>

With the updated trid definition now all my Resource Description Framework
examples are now described ( see appended output/trid-v.txt). TrID
definition, some examples and output are stored in archive rdf_.zip. I hope
that my XML file can be used in future version of triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2731
    • Mark0's Home Page
Re: updated rdf.trid.xml for Resource Description Framework
« Reply #1 on: July 14, 2022, 03:10:21 PM »
Thanks!