In Nepomuk-KDE (part of kdelibs/kdebase) we use TriG files to encode RDF ontologies. Turtle is used by the standard RDF query language SPARQL (also used in Nepomuk-KDE) which is also used in KDE. I propose to include the following (minus the comments which are only for your consideration): <!-- http://www4.wiwiss.fu-berlin.de/bizer/TriG/ --> <!-- Used in Nepomuk to encode almost all ontologies --> <?xml version="1.0" encoding="utf-8"?> <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-trig"> <comment>TriG RDF document</comment> <alias>text/rdf</alias> <glob pattern="*.trig" /> </mime-type> <!-- http://www.dajobe.org/2004/01/turtle/#sec-mime --> <!-- Important: the SPARQL RDF query lanaguge uses turtle encoding for graph patterns. --> <?xml version="1.0" encoding="utf-8"?> <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-turtle"> <comment>Turtle RDF document</comment> <sub-class-of type="text/plain" /> </mime-type>
(In reply to comment #0) > In Nepomuk-KDE (part of kdelibs/kdebase) we use TriG files to encode RDF > ontologies. Turtle is used by the standard RDF query language SPARQL (also used > in Nepomuk-KDE) which is also used in KDE. Are those files going to be be visible by normal users, and would be "clicked" and launched? eg. What's the use behind having those mime-types (apart from completeness)? > I propose to include the following (minus the comments which are only for your > consideration): > > <!-- http://www4.wiwiss.fu-berlin.de/bizer/TriG/ --> > <!-- Used in Nepomuk to encode almost all ontologies --> > <?xml version="1.0" encoding="utf-8"?> > <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" > type="application/x-trig"> > <comment>TriG RDF document</comment> > <alias>text/rdf</alias> The alias is already there for application/rdf+xml You're also missing a sub-class. > <glob pattern="*.trig" /> > </mime-type> > > > <!-- http://www.dajobe.org/2004/01/turtle/#sec-mime --> > <!-- Important: the SPARQL RDF query lanaguge uses turtle encoding for graph > patterns. --> > <?xml version="1.0" encoding="utf-8"?> > <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" > type="application/x-turtle"> > <comment>Turtle RDF document</comment> > <sub-class-of type="text/plain" /> > </mime-type> Could you please file one bug per mime-type in the future? I would also appreciate it if you could generate patches against CVS instead of cut'n'pasting the mime-types definitions.
> The alias is already there for application/rdf+xml > You're also missing a sub-class. typical copy'n'paste bug: I meant to copy the subclass text/plain thing. > Could you please file one bug per mime-type in the future? I would also > appreciate it if you could generate patches against CVS instead of > cut'n'pasting the mime-types definitions. Sure, no problem. Sorry about that. Do you still want new bugs?
(In reply to comment #2) > > The alias is already there for application/rdf+xml > > You're also missing a sub-class. > > typical copy'n'paste bug: I meant to copy the subclass text/plain thing. > > > Could you please file one bug per mime-type in the future? I would also > > appreciate it if you could generate patches against CVS instead of > > cut'n'pasting the mime-types definitions. > > Sure, no problem. Sorry about that. Do you still want new bugs? I'd like you to answer my first question before that. I don't really the use of those types anywhere user-visible, so I'd be very reluctant to add them. You can still install those types outside of the shared-mime-info main tarball.
Sorry, I cannot reply by email since your bugzilla does not know encoding "utf-8". Fun. :) In my email I had answered your email. Anyway, I use the mimetypes to import rdf ontologies into Nepomuk. A typical example is: you click a link to rdf data in the browser and it is opened with the ontology import utility. Thus, I don't want to have these mimetypes only for completeness. I actually use them.
(In reply to comment #4) > Sorry, I cannot reply by email since your bugzilla does not know encoding > "utf-8". Fun. :) > In my email I had answered your email. There's no email interface for bugzilla. > Anyway, I use the mimetypes to import rdf ontologies into Nepomuk. A typical > example is: you click a link to rdf data in the browser and it is opened with > the ontology import utility. > Thus, I don't want to have these mimetypes only for completeness. I actually > use them. Fair enough, then please follow the instructions in the HACKING file about providing patches. http://cgit.freedesktop.org/xdg/shared-mime-info/plain/HACKING
Closed in favor of bug #32812.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.