[EP-tech] JSON-LD , http://schema.org

Tomasz Neugebauer Tomasz.Neugebauer at concordia.ca
Wed Jun 5 19:10:13 BST 2019


Thanks, Karl.  I created the pull request and after a discussion with Lizz Jennings, it has been merged to the master branch. The JSON-LD plugin is updated so that in addition to DataSet, it can also convert other EPrints document type’s metadata into schema.org.  I am particularly happy that it can output a graph of results, i.e., multiple items, for example: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspectrum.library.concordia.ca%2Fcgi%2Fexportview%2Fdivisions%2Fdep%3D5Fapphumansci%2F2019%2FJSONLD%2Fdep%3D5Fapphumansci_2019.js&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=FPOWNDG%2FWybNyXVSbx1S1RG7uGYyNi2aa9usEfTyiJU%3D&reserved=0
Thanks again to Lizz Jennings for getting us started on the first version of that JSON-LD plugin for EPrints.
Tomasz




From: Karl Goetz <karl.goetz at utas.edu.au>
Sent: May 21, 2019 7:21 PM
To: eprints-tech at ecs.soton.ac.uk; Tomasz Neugebauer <Tomasz.Neugebauer at concordia.ca>
Subject: Re: [EP-tech] JSON-LD , https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fschema.org&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8c35eJ%2Fz93MxRaIFVFYlBJwsCWkPMV59K%2Feu8Kr5ht4%3D&amp;reserved=0

Hi Tomaz,
I suggest opening a pull request. I know the json-ld repository has been largely untouched but its still worth having updates fed in rather then Yet Another obsolete project!

Karl.


On 22 May 2019, at 8:56 am, Tomasz Neugebauer via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:

I have been working a lot with JSON format on a different metadata ingest project, which made me have another look at the JSON export that comes with EPrints.  The default JSON export takes the EPrints XML, and exports all of it out; so we made the default all-metadata-exporting JSON plugin visible to staff only.  The result wasn't structured according to schema.org<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fschema.org&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8c35eJ%2Fz93MxRaIFVFYlBJwsCWkPMV59K%2Feu8Kr5ht4%3D&amp;reserved=0> (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=upYttpR4v6X3x%2B1IsVDufWgCwgVXdRFbk5ORDC%2FecR4%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=upYttpR4v6X3x%2B1IsVDufWgCwgVXdRFbk5ORDC%2FecR4%3D&amp;reserved=0>) specification, which would be more useful for indexing by Google and Bing.  So I had a look around, and found the eprintsugrepository: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=9KCUOh3mq%2FzW4%2BKbLBQ7aU7C%2Bo7aiB2UEtEzro6YMiM%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=9KCUOh3mq%2FzW4%2BKbLBQ7aU7C%2Bo7aiB2UEtEzro6YMiM%3D&amp;reserved=0>   Great work!

I have created a branch https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld%2Ftree%2Fjson-ld-generalized&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=bKQDwlgtL0EwZ8qGXgWbNBNyaULyp%2FCMiD8eX8sEeHg%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld%2Ftree%2Fjson-ld-generalized&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=bKQDwlgtL0EwZ8qGXgWbNBNyaULyp%2FCMiD8eX8sEeHg%3D&amp;reserved=0> that is more generalized beyond DataSet document type, and now have this working in our repository (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspectrum.library.concordia.ca&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=tsVkI7VN5bvQAlr1er3xPt1aRfzPg6bIoqgiHIERJDg%3D&amp;reserved=0).  We are mapping by default to the broad “CreativeWork” type (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FCreativeWork&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=GT1bsXbvvKwBq5m17qIZOSENcvu%2FuxyYnPcSMrNHNBI%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FCreativeWork&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=GT1bsXbvvKwBq5m17qIZOSENcvu%2FuxyYnPcSMrNHNBI%3D&amp;reserved=0>), and the more specific types for thesis (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FThesis&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=WhdiSiWk1qbRKJryavoVe8HssXg1QIKy4JmwEKBuUTQ%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FThesis&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=WhdiSiWk1qbRKJryavoVe8HssXg1QIKy4JmwEKBuUTQ%3D&amp;reserved=0>), dataset (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FDataset&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=VWON%2BvBN3Nyl3siQHipldAO96C8akFFbihm5Pu0%2Fuso%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FDataset&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=VWON%2BvBN3Nyl3siQHipldAO96C8akFFbihm5Pu0%2Fuso%3D&amp;reserved=0>), article (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FScholarlyArticle&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=tIFcFFYRIOPDICxFNp0oqWPYrqVkbfZ2wsuBdDo5WwU%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FScholarlyArticle&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=tIFcFFYRIOPDICxFNp0oqWPYrqVkbfZ2wsuBdDo5WwU%3D&amp;reserved=0>), book_section (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FChapter&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Slzn%2FH7tzublKt3RVLqPFYj60i2x3ONGsAgC40QWnbU%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FChapter&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Slzn%2FH7tzublKt3RVLqPFYj60i2x3ONGsAgC40QWnbU%3D&amp;reserved=0>), and book (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FBook&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hyJzWRZydBCe3PotqHs%2F8M%2F7Ll5nkwQG9lQJ2OZ6Cl0%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FBook&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hyJzWRZydBCe3PotqHs%2F8M%2F7Ll5nkwQG9lQJ2OZ6Cl0%3D&amp;reserved=0>).  I also added a function to generate a JSON-LD @graph for the results for browse screens and search results.

I will be creating a merge request soon to merge this branch into the master branch of the JSON-LD plugin, unless it would make sense to make a fork instead?
​
Tomasz



________________________________________________
Tomasz Neugebauer
Digital Projects & Systems Development Librarian / Bibliothécaire des Projets Numériques & Développement de Systèmes
Library / Bibliothèque
Concordia University / Université Concordia
Tel. / Tél. 514-848-2424 ext. / poste 7738
Email / courriel: tomasz.neugebauer at concordia.ca<mailto:tomasz.neugebauer at concordia.ca>
https://eur03.safelinks.protection.outlook.com/?url=www.concordia.ca%2Ffaculty%2Ftomasz-neugebauer.html&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8gGOg90V70SOKr1jN2p65X%2BHtZoDTan7gjhU5HmJ%2B5A%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.concordia.ca%2Ffaculty%2Ftomasz-neugebauer.html&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ds8DAHTlWzOfxswPDq0zUtI7WwbC0rKbNWsnQ%2Bx0vmM%3D&amp;reserved=0>
Mailing address / adresse postale: 1455 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8
Street address / adresse municipale: 1400 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8
library.concordia.ca<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flibrary.concordia.ca&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=jQbkf88%2FWbxZX72IiKgoGhttG4Iq5Hf5IQRDBL02iTI%3D&amp;reserved=0>

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=VYXQTHFX4iHnQfUvKBgCbYoDKbBVr9g7d5f%2F7WZaMgM%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=JFQWxIQ1H4m0YMMge6xkW3ur5gG1BamIaACeq3WGJUE%3D&amp;reserved=0
*** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ZAxjFatyR%2BR2f%2FLXxEtDF9DQcDujzh07YZqzyTbUVeQ%3D&amp;reserved=0

--
Karl Goetz
Mon, Tue, Wed, Technical Services Officer - eResearch
Wed, Thu, Fri Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190605/a5fcaf90/attachment-0001.html 


More information about the Eprints-tech mailing list