[EP-tech] JSON-LD , schema.org
Tomasz Neugebauer via Eprints-tech <[email protected]>
| Newsgroups | gmane.comp.web.eprints.devel |
|---|---|
| Message-ID | <EMEW3|e184ee61573cdc7b31377b57689ea265v4KNv614eprints-tech-bounces|ecs.soton.ac.uk|[email protected]> |
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=https%3A%2F%2Fschema.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=HocyMluIqOx9FiLavNF7R4UHHNVi7peC5xBmQjL33w4%3D&reserved=0) specification, which would be more useful for indexing by Google and Bing. So I had a look around, and found the eprintsug repository: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fjson-ld&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Ae55amLJ33EFcXfXqeBjqGf4Tx%2Fbh04yjVbPg6VYGBo%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2BGl0vHtYsICh5Q%2Fj5DlsPY9UPYJJeUyCITmq8ZAB9rw%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=esf9UTwK9%2BDqocOS5J91%2FsqlsUfjI3GtynXUM7l6l88%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=meftm57ivKD%2B0UgOc%2FWxnpheXNGkKOoBwOUYV9TjROc%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=dpMyjI69KyOhG6p613FWdTFzcGB76o6yHsznQzqAD8Q%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ymvI3fu6oxFJvLSfewx9ynDvE9M2n5XIC366Kq31npg%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=gaQWlXmIKnAQnhFrOw1avMmB0gUkg1GoAm04BRp59w8%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=7DH7D4%2BrQx4yCfFBifdYf2az0iMJdMWsnazRfRfWphM%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tOm9xIbIfR2EcRz95t29Teeritn6jTz6cyNr8LhdN3c%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=zM3WIY76MpEHwKVl7qX1a%2B5d0NZN%2Bf66XPEBhJsocsk%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%7C3badbf5d7582494e46cd08d6de3f996c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Lw123nm36tsXpRGdn9InQF%2FJOnRZ0%2B%2BiHXV8UsuPvFA%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 *** 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/