https://github.com/bmarwell/webtrees-jsonld
Implementation for application/ld+json-output in webtrees' person/individual view.
https://github.com/bmarwell/webtrees-jsonld
Last synced: about 2 months ago
JSON representation
Implementation for application/ld+json-output in webtrees' person/individual view.
- Host: GitHub
- URL: https://github.com/bmarwell/webtrees-jsonld
- Owner: bmarwell
- License: gpl-3.0
- Created: 2015-06-05T19:51:44.000Z (almost 10 years ago)
- Default Branch: next-2.0
- Last Pushed: 2023-07-11T05:55:06.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T01:11:09.863Z (2 months ago)
- Language: PHP
- Size: 928 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# json-ld module for webtrees
## Contents
* [Introduction](#introduction)
* [Installation](#installation)
* [Verification](#verification)
* [Links](#links)
* [License](#license)### Introduction
This module for webtrees will generate json-ld-compatible code für bots,
search engines, spiders and other engines. For more information visit [schema.org](http://schema.org)
or [json-ld.org](http://json-ld.org/).### Installation
1. Copy the folder src/jsonld (only the subfolder) to your webtrees/modules_v3-folder.
2. Go to the admin menu and modules, then enable the JsonLD-Module.### Update
If you have a previous version of JsonLD installed, remove the folder `modules_v4/jsonld`. The new Foldername reflects
the title (which has capital letters). Otherwise, this plugin will not work!### Verification
To see if it works, open up the [Google Structured Data Testing Tool](https://developers.google.com/structured-data/testing-tool/)
and paste the url of any public individual.
You should also see a new tab on individuals, containing the hidden source code and also
the human-readable version inside a html pre-tag.If you use curl, you can do sth. like this:
```shell
curl -so - "http://path.to/webtrees/individual.php?pid=I1&ged=AllGED" | \
xmllint --html --xpath "//script[@id='json-ld-data']/text()" - 2>/dev/null | \
jq -C '.'
```### Links
* Forum discussion: [Webtrees: Schema.org](http://www.webtrees.net/index.php/en/forum/2-open-discussion/27014-schema-org).
* The parent project’s website is [webtrees.net](http://webtrees.net).
* German Description: [Webtrees-Module](https://www.bmarwell.de/projekte/webtrees-module/).
* Examples on how to parse with curl (German): [Webtrees-Plugin: json-ld](https://blog.bmarwell.de/webtrees-plugin-json-ld/).
* Google's testing tool: [Structured Data Testing Tool](https://developers.google.com/structured-data/testing-tool/).### License
webtrees json-ld: online genealogy json-ld-module.
Copyright (C) 2015 webtrees development teamThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .