Hello Paul,
Working again on the schema.org schema after a break.
I'm testing your pull request 3565 with the google Structured Data Testing Tool (https://search.google.com/structured-data/testing-tool).
One thing I'm confused about is that I there are actually two times the same file in the geonetwork application:
1. in geonetwork/WEB-INF/data/config/schema_plugins/iso19139/formatter/xsl-view/view.xsl
2. in data directory data/config/schema_plugins/iso19139/formatter/xsl-view/view.xsl
After a few tests I noticed that the file used is the one stored in the data directory. This is a bit annoying as my plan was to keep the data directory and the database in a different location than the geonetwork application itself to easily upgrade GN version in the future (and keep metadata files, thumbnails, ...). But if upgrade like that are stored in the data directory that could become a problem in future version...
Would it be possible to keep this data/config folder up-to-date and only store the data/data directory in another location?
Based on this page on customizing the data directory (https://geonetwork-opensource.org/manuals/trunk/eng/users/maintainer-guide/installing/customizing-data-directory.html), what would the path looks like?
<bean id="GeonetworkDataDirectory" class="org.fao.geonet.kernel.GeonetworkDataDirectory" lazy-init="true">
<property name="systemDataDir" ref="GNSystemDataDir"/>
<property name="schemaPluginsDir" ref="GNSchemaPluginsDir"/>
</bean>
<bean id="GNSystemDataDir" class="java.nio.file.Paths" factory-method="get">
<constructor-arg index="0" value="/myPath/data/data/"/>
<constructor-arg index="1"><array /></constructor-arg>
</bean>
I used to write the path to the general data directory /myPath/data/ that contains the three folders (config, data and index).
Thanks a lot,
Nicolas
P.S. Sorry, long mail...
On 6/03/19 09:04, Paul van Genuchten wrote:
Nicolas, thank you for your research. the website on the url you’re referencing is lacking a ccs due to mixed content problems (and therefore looks like a 90’s website)
I suggest you update the settings to let port:443 be the default web port and https the default protocol
In my pull request https://github.com/geonetwork/core-geonetwork/pull/3565 i’m suggesting a couple of improvements to the schema.org<http://schema.org> mapping, this will facilitate a better mapping to schema.org<http://schema.org> (indeed current mapping has some challenges). you could also already duplicate the iso19139/formatter/xsl-view/view.xsl<https://github.com/geonetwork/core-geonetwork/pull/3565/files\#diff\-865253b6ce7979c99da972f75317384b> from my pull request into your schema to test it.
On 4 Mar 2019, at 11:07, Nicolas De Ville de Goyet <ndeville@...1741...<mailto:ndeville@…1741…>> wrote:
Hello Francois,
Thanks for your reply.
I'm doing some test with the solution you provided. Here is what I get so far.
I see the schema.org<http://schema.org> tags in the html page of my metadata if I build the url such as:
http://your-server/geonetwork/srv/eng/md.format.html?uuid=some-uuid&xsl=xsl-view
Therefore I build my sitemap with this structure of url. The sitemap is validated by google webmaster tool. However:
- looks like the xsl-view of the metadata is not displayed properly by web browser, making your website looks like a website from the early nineties. Example on my dev geonetwork: http://ears.bmdc.be/geonetwork/srv/eng/md.format.html?uuid=f432b696-ac1a-4971-acc8-184bc79e9b7f&xsl=xsl-view
- Making tests on the google structure data testing tool (https://search.google.com/structured-data/testing-tool#), the schema.org<http://schema.org> elements are recognized but not the actual values.
I believe the best option would be to embed the JSON-LD output in the html landing page of each metadata so that search engine can easily find the information and the sitemap doesn't link to odd-looking page (your solution d). Unfortunately my IT skills are a bit short to do that myself...
I'll keep looking for solutions but as usual, any tips are welcome 
Thanks for your help,
Nicolas
On 28/02/19 11:44, Francois Prunayre wrote:
Hi Nicolas,
Currently schema.org<http://schema.org/> tags are added to the XSL view formatter
https://github.com/geonetwork/core-geonetwork/blob/master/schemas/iso19139/src/main/plugin/iso19139/formatter/xsl-view/view.xsl#L381
which can be used as a default landing page which is referenced in the catalogue sitemap
See some of the PRs related to this https://github.com/geonetwork/core-geonetwork/pulls?q=is%3Apr+schema.org+is%3Aclosed (and also some others from Paul are waiting a review)
Some items to improve that would be:
a) Add schema.org<http://schema.org/> to Angular template (not sure it will help as search engine will not check this JS generated page)
https://github.com/geonetwork/core-geonetwork/blob/master/web-ui/src/main/resources/catalog/views/default/templates/recordView.html
b) Add a JSON-LD formatter (proposed mapping https://github.com/geonetwork/core-geonetwork/wiki/JSON-LD---ISO19139-mapping-proposal)
c) Embed the JSON-LD formatter output in the XSL formatter
d) Build the formatter cache automatically (for all public records) to improve access to the default landing page of all records and indexing performances for search engines
Francois
Le mar. 26 févr. 2019 à 11:07, Ndeville <ndeville@...1741...<mailto:ndeville@…1741…>> a écrit :
Hello Everyone,
In order to improve the referencing of the metadata files I have on my
Geonetwork, I wish to make them visible to search engine using schema.org<http://schema.org/>
json-ld format.
Thanks to this post
https://www.geocat.net/geonetwork-and-the-search-engines/ I have the idea of
the different steps to follow. Unfortunately the last step (i.e. create the
actual metadata information), is not described.
I see an xslt file on the github that should create the correct output for a
proper referencing:
https://github.com/geo4web-testbed/core-geonetwork/blob/schema_org/schemas/iso19139/src/main/plugin/iso19139/formatter/schema-org/view.xsl
However two questions are unclear to me:
- how to ensure that the information created by the xsl file is written on
the html page of each metadata record? (not easy as the html page of MD
record has no real content but only links to the information stored
somewhere else)
- how to call the xsl file? Where do I need to tell geonetwork that I want
it to use this formatter (maybe the same answer as the first question).
Any input is welcome!
Thanks,
Nicolas de Ville
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be<http://www.bmdc.be/>
geonetwork.bmdc.be
--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be<http://www.bmdc.be>
geonetwork.bmdc.be