Page MenuHomePhabricator

SVG file: Upload error on Wikimedia Commons for namespace "http://iptc.org/std/iptc4xmpcore/1.0/xmlns/"
Closed, InvalidPublic

Description

An SVG map has been created based on https://commons.wikimedia.org/wiki/File:WestBengalDistricts_numbered.svg, which depicts the District Hospitals in the state of West Bengal, India-using Inkscape. However, we are unable to upload the first SVG created (https://drive.google.com/file/d/1RD-M9jhI_Sj980F1uMxS_41YTgETIvm_/view?usp=sharing).

While we try to upload it to Commons, it generates the following error:
This SVG file contains an illegal namespace "http://iptc.org/std/iptc4xmpcore/1.0/xmlns/"

After trying fix this using XML editor, we have another version of this file (https://drive.google.com/file/d/11fFQgawpMApQYIne7dYxu8Sfskfyht28/view?usp=sharing), which generates an error,
illegal namespace "iptc4xmpcore"

Eventually we were able to upload the file by making several corrections using XML editor, the file is at https://commons.wikimedia.org/wiki/File:District Hospital West Bengal.svg. Since the original file has these tags, it may be part of the new changes. As pointed out by a fellow user (@Shyamal) this measures make Commons anti-commercial, since most of these tags are generated from Illustrator.

Event Timeline

KCVelaga created this task.Nov 17 2018, 3:56 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 17 2018, 3:56 AM
KCVelaga renamed this task from SVG tags error on Wikimedia Commons to SVG file: Namespace tags error on Wikimedia Commons.Nov 17 2018, 3:57 AM
Aklapper renamed this task from SVG file: Namespace tags error on Wikimedia Commons to SVG file: Namespace tags error on Wikimedia Commons for namespace "http://iptc.org/std/iptc4xmpcore/1.0/xmlns/".Nov 17 2018, 8:32 AM
Aklapper added a project: MediaWiki-Uploading.
Restricted Application added a project: Multimedia. · View Herald TranscriptNov 17 2018, 8:32 AM
KCVelaga renamed this task from SVG file: Namespace tags error on Wikimedia Commons for namespace "http://iptc.org/std/iptc4xmpcore/1.0/xmlns/" to SVG file: Upload error on Wikimedia Commons for namespace "http://iptc.org/std/iptc4xmpcore/1.0/xmlns/".Nov 17 2018, 9:53 AM
Ebe123 added a subscriber: Ebe123.Nov 17 2018, 7:46 PM

I think this is more or less a file related issue. Like I can see this error showing up while opening up the second file https://drive.google.com/file/d/1RD-M9jhI_Sj980F1uMxS_41YTgETIvm_/view?usp=sharing on google-chrome. See:

TheDJ added a subscriber: TheDJ.EditedNov 19 2018, 7:43 AM

It complains about this on the metadata that your editor added

<rdf:Description
           rdf:about=""><photoshop:CaptionWriter>http://en.wikipedia.org/wiki/User:Planemad</photoshop:CaptionWriter><photoshop:AuthorsPosition>User:Planemad</photoshop:AuthorsPosition><photoshop:Headline>SVG Maps of India</photoshop:Headline><photoshop:Country>India</photoshop:Country><photoshop:Credit>Wikipedia</photoshop:Credit></rdf:Description><rdf:Description
           rdf:about=""><Iptc4xmpCore:CountryCode>IN</Iptc4xmpCore:CountryCode><Iptc4xmpCore:CreatorContactInfo
             rdf:parseType="Resource"><Iptc4xmpCore:CiAdrCtry>India</Iptc4xmpCore:CiAdrCtry><Iptc4xmpCore:CiAdrCity>Chennai</Iptc4xmpCore:CiAdrCity><Iptc4xmpCore:CiUrlWork>http://en.wikipedia.org/wiki/User:Planemad</Iptc4xmpCore:CiUrlWork></Iptc4xmpCore:CreatorContactInfo>

where it uses Iptc4xmpCore, without having defined it at the root level. Adding the following to the svg root element fixes the problem: xmlns:Iptc4xmpCore="https://www.iptc.org/std/Iptc4xmpCore/1.0/xmlns/"

TheDJ closed this task as Invalid.Nov 19 2018, 7:49 AM

P.S. https://tools.wmflabs.org/svgcheck/index.php allows you to check an SVG for any known problem, possible problems and MediaWiki specific restrictions.