Bug 32812

Summary: New mime-type application/x-trig
Product: shared-mime-info Reporter: Sebastian Trüg <trueg>
Component: freedesktop.org.xmlAssignee: Shared Mime Info group <shared_mime_info>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch against git master to add application/x-trig
Patch against git master to add application/x-trig
Patch against git master to add application/x-trig with acronym

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.