Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make easier for users to point to their geonetwork application #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ format usable in GeoNetwork opensource.

A script is provided to convert GEMET thesaurus https://www.eionet.europa.eu/gemet/

Before running any script create `GEONETWORK_HOME` environment variable pointing the Geonetwork deployment directory:

Use the following to generate a GEMET SKOS file with many languages:
```
./gemet-to-simpleskos.sh en fr de nl it
export GEONETWORK_HOME=../dev/web/target/geonetwork
```

Note: Update GEONETWORK_HOME variable before running any scripts.
Then use the following to generate a GEMET SKOS file with many languages:

```
./gemet-to-simpleskos.sh en fr de nl it
```


## Thesaurus
Expand Down
14 changes: 12 additions & 2 deletions gemet-to-simpleskos.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/bin/sh
export GEONETWORK_HOME=../dev/web/target/geonetwork
export CLASSPATH=.:$GEONETWORK_HOME/WEB-INF/lib/saxon-9.1.0.8b-patch.jar
# export GEONETWORK_HOME=../dev/web/target/geonetwork

export SAXON_PATH=$GEONETWORK_HOME/WEB-INF/lib/saxon-9.1.0.8b-patch.jar

if [ ! -f "$SAXON_PATH" ]; then
echo "Saxon could not be found in $SAXON_PATH. Check you have set GEONETWORK_HOME env variable correctly"
exit 1
fi

exit 1

export CLASSPATH=.:$SAXON_PATH

if [ $1 ]
then
Expand Down