I just tried opening this link in Firefox and it complained that the XML file is not well-formed, at the first <wdt:Wikidata:P4 …> element. As far as I can tell, that’s correct according to Namespaces in XML 1.1 [1]:

[8]  PrefixedName    ::= Prefix : LocalPart
[10] Prefix      
   ::= NCName
[11] LocalPart   
   ::= NCName
[4]  NCName          ::= NCNameStartChar NCNameChar /* An XML Name, minus the ":" */
[5]  NCNameChar      ::= NameChar - ':'
[6]  NCNameStartChar ::= NameStartChar - ':'

Neither the prefix nor the local part may contain a colon, so wdt:Wikidata:P4 is not a valid element name (unless you follow pure XML without XML namespaces, where colons have no semantic meaning – but RDF syntax [2] requires XML namespaces). (On the other hand, Turtle [3] explicitly allows “non leading colons”, so this isn’t a problem for that format.)

Is there already a Phabricator task for this issue? I couldn’t find one.

Cheers,
Lucas

[1]: https://www.w3.org/TR/2006/REC-xml-names11-20060816/
[2]: https://www.w3.org/TR/1999/PR-rdf-syntax-19990105/
[3]: https://www.w3.org/TR/2014/REC-turtle-20140225/


On 06.07.2017 23:02, Amir Tafreshi wrote:
Hey,
The /entity/ path is just redirect to Special:EntityData. You can access it easily this way http://structured-commons.wmflabs.org/wiki/Special:EntityData/M13.rdf

I don't know how good is the RDF output, but given that it's mediainfo and doesn't have any additional parts (for example lexeme does) I think it's fine. Feel free to file a bug if you see any problems.

Best

On 6 July 2017 at 23:19, André Costa <lokal.profil@gmail.com> wrote:
Nice!

Will the connection back to the image be included in the rdf? The /entity/ path was not available so couldn't check what is there now.

Cheers,
André 



On 6 Jul 2017 15:10, "Léa Lacroix" <lea.lacroix@wikimedia.de> wrote:

Hello all,

As you may know, WMF, WMDE and volunteers are working together on the structured data for Commons project. We’re currently working on a lot of technical groundwork for this project. One big part of that is allowing the use of Wikidata’s items and properties to describe media files on Commons. We call this feature federation. We have now developed the necessary code for it and you can try it out on a test system and give feedback.

We have one test wiki that represents Commons (http://structured-commons.wmflabs.org) and another one simulating Wikidata (http://federated-wikidata.wmflabs.org). You can see an example where the statements use items and properties from the faked Wikidata. Feel free to try it by adding statements to to some of the files on the test system. (You might need to create some items on http://federated-wikidata.wmflabs.org if they don’t exist yet. We have created a few for testing.)

If you have any questions or concern, please let us know.
Thanks,

--
Léa Lacroix
Project Manager Community Communication for Wikidata

Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207.

_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata




--
Amir Sarabadani Tafreshi
Software Engineer (contractor) 
-------------------------------------

Wikimedia Deutschland e.V. | Tempelhofer Ufer 23-24 | 10963 Berlin
http://wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.


_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata