Bug 32812 - New mime-type application/x-trig
Summary: New mime-type application/x-trig
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium enhancement
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 01:48 UTC by Sebastian Trüg
Modified: 2013-02-13 13:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch against git master to add application/x-trig (15.13 KB, patch)
2011-01-04 01:48 UTC, Sebastian Trüg
Details | Splinter Review
Patch against git master to add application/x-trig (15.28 KB, patch)
2011-06-20 02:19 UTC, Sebastian Trüg
Details | Splinter Review
Patch against git master to add application/x-trig with acronym (15.62 KB, patch)
2013-02-13 13:28 UTC, Sebastian Trüg
Details | Splinter Review

Description Sebastian Trüg 2011-01-04 01:48:56 UTC
Created attachment 41608 [details] [review]
Patch against git master to add application/x-trig

As already discussed in bug #18089 I require the mime-type application/x-trig which is used for all ontologies in the shared-desktop-ontologies package.

Attached is a patch for the current git master including a test file.
Comment 1 Bastien Nocera 2011-05-25 05:42:25 UTC
Acronym is missing from the mime-type definition.
Comment 2 Sebastian Trüg 2011-06-20 02:19:26 UTC
Created attachment 48181 [details] [review]
Patch against git master to add application/x-trig

New patch adds an acronym.
Comment 3 Bastien Nocera 2011-06-20 02:54:33 UTC
./freedesktop.org.xml:31026: element mime-type: validity error : Element mime-type content does not follow the DTD, expecting (comment+ , (acronym , expanded-acronym)? , (generic-icon | glob | magic | treemagic | root-XML | alias | sub-class-of)*), got (comment acronym sub-class-of glob )
  </mime-type>
              ^

When adding "acronym" you also need to add "expanded-acronym". And I'm not certain how you formatted the patch, but git-am failed to apply it on top of the current git master tree.
Comment 4 Sebastian Trüg 2013-02-13 13:28:03 UTC
Created attachment 74748 [details] [review]
Patch against git master to add application/x-trig with acronym

This updated patch includes an extended-acronym and is formatted via git-format on the current git master.
Comment 5 Bastien Nocera 2013-02-13 13:37:36 UTC
commit bf25d8923dc2b2036acb7652698a83b822df8245
Author: Sebastian Trueg <trueg@kde.org>
Date:   Tue Jan 4 10:44:33 2011 +0100

    Add application/x-trig mime-type
    
    application/x-trig represents the encoding used for all RDF ontologies
    in the shared-desktop-ontologies package.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=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.