Re: [EP-tech] JSON-LD , http://schema.org
Tomasz Neugebauer via Eprints-tech <[email protected]>
| Newsgroups | gmane.comp.web.eprints.devel |
|---|---|
| Message-ID | <EMEW3|def7c53647707f1b0eb385d3665ee3c3v54JAd14eprints-tech-bounces|ecs.soton.ac.uk|[email protected]> |
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 <[email protected]> Sent: May 21, 2019 7:21 PM To: [email protected]; Tomasz Neugebauer <[email protected]> Subject: Re: [EP-tech] JSON-LD , https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fschema.org&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=8c35eJ%2Fz93MxRaIFVFYlBJwsCWkPMV59K%2Feu8Kr5ht4%3D&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 <[email protected]<mailto:[email protected]>> 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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=8c35eJ%2Fz93MxRaIFVFYlBJwsCWkPMV59K%2Feu8Kr5ht4%3D&reserved=0> (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=upYttpR4v6X3x%2B1IsVDufWgCwgVXdRFbk5ORDC%2FecR4%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=upYttpR4v6X3x%2B1IsVDufWgCwgVXdRFbk5ORDC%2FecR4%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=9KCUOh3mq%2FzW4%2BKbLBQ7aU7C%2Bo7aiB2UEtEzro6YMiM%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=9KCUOh3mq%2FzW4%2BKbLBQ7aU7C%2Bo7aiB2UEtEzro6YMiM%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=bKQDwlgtL0EwZ8qGXgWbNBNyaULyp%2FCMiD8eX8sEeHg%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld%2Ftree%2Fjson-ld-generalized&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=bKQDwlgtL0EwZ8qGXgWbNBNyaULyp%2FCMiD8eX8sEeHg%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tsVkI7VN5bvQAlr1er3xPt1aRfzPg6bIoqgiHIERJDg%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=GT1bsXbvvKwBq5m17qIZOSENcvu%2FuxyYnPcSMrNHNBI%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FCreativeWork&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=GT1bsXbvvKwBq5m17qIZOSENcvu%2FuxyYnPcSMrNHNBI%3D&reserved=0>), and the more specific types for thesis (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FThesis&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=WhdiSiWk1qbRKJryavoVe8HssXg1QIKy4JmwEKBuUTQ%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FThesis&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=WhdiSiWk1qbRKJryavoVe8HssXg1QIKy4JmwEKBuUTQ%3D&reserved=0>), dataset (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FDataset&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=VWON%2BvBN3Nyl3siQHipldAO96C8akFFbihm5Pu0%2Fuso%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FDataset&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=VWON%2BvBN3Nyl3siQHipldAO96C8akFFbihm5Pu0%2Fuso%3D&reserved=0>), article (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FScholarlyArticle&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tIFcFFYRIOPDICxFNp0oqWPYrqVkbfZ2wsuBdDo5WwU%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FScholarlyArticle&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tIFcFFYRIOPDICxFNp0oqWPYrqVkbfZ2wsuBdDo5WwU%3D&reserved=0>), book_section (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FChapter&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Slzn%2FH7tzublKt3RVLqPFYj60i2x3ONGsAgC40QWnbU%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FChapter&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Slzn%2FH7tzublKt3RVLqPFYj60i2x3ONGsAgC40QWnbU%3D&reserved=0>), and book (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FBook&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=hyJzWRZydBCe3PotqHs%2F8M%2F7Ll5nkwQG9lQJ2OZ6Cl0%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fschema.org%2FBook&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=hyJzWRZydBCe3PotqHs%2F8M%2F7Ll5nkwQG9lQJ2OZ6Cl0%3D&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: [email protected]<mailto:[email protected]> https://eur03.safelinks.protection.outlook.com/?url=www.concordia.ca%2Ffaculty%2Ftomasz-neugebauer.html&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=8gGOg90V70SOKr1jN2p65X%2BHtZoDTan7gjhU5HmJ%2B5A%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.concordia.ca%2Ffaculty%2Ftomasz-neugebauer.html&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ds8DAHTlWzOfxswPDq0zUtI7WwbC0rKbNWsnQ%2Bx0vmM%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=jQbkf88%2FWbxZX72IiKgoGhttG4Iq5Hf5IQRDBL02iTI%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=VYXQTHFX4iHnQfUvKBgCbYoDKbBVr9g7d5f%2F7WZaMgM%3D&reserved=0 *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=JFQWxIQ1H4m0YMMge6xkW3ur5gG1BamIaACeq3WGJUE%3D&reserved=0 *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1b92c5e749ce4bf6d6ae08d6e9e1152d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ZAxjFatyR%2BR2f%2FLXxEtDF9DQcDujzh07YZqzyTbUVeQ%3D&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. *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/