-
Notifications
You must be signed in to change notification settings - Fork 23
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
Openalex fetch example #61
Open
bkampe
wants to merge
3
commits into
vivo-community:main
Choose a base branch
from
bkampe:openalex
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
...ripts/full-harvest-examples/1.13-1.15-examples/example-openalex/diff-additions.config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2010-2011 VIVO Harvester Team. For full list of contributors, please see the AUTHORS file provided. | ||
All rights reserved. | ||
This program and the accompanying materials are made available under the terms of the new BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.html | ||
--> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% The diff tool is used to compare jena models and produce a result model which is the first model (minuend) %> | ||
<% with any matching statements in the second model (subtrahend) removed from it. %> | ||
<% ===== %> | ||
<% This tool produces the graph-math difference of the triples between two models. It produces a model with the %> | ||
<% triples which are in the minuend and not in the subtrahend. %> | ||
<% Expressed mathematically as minuend - subtrahend = difference %> | ||
<% Neither the minend nor the subtrahend are altered. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Task> | ||
<!--INPUT --> | ||
<!--MINUEND : for more information please see the given config file --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="minuend"> The model described by this config file is the model which has the data which will be in %> | ||
<% output model. %> | ||
<% %> | ||
<% %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Param name="minuend">harvested-data.model.xml</Param> | ||
|
||
<!--SUBTRAHEND : for more information please see the given config file --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="subtrahend"> The model described by this config file contains the triples which are not goning to %> | ||
<% be within the output model. If the triples match any within the minuend model then the output will be smaller %> | ||
<% than the minuend. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Param name="subtrahend">previous-harvest.model.xml</Param> | ||
|
||
|
||
<!--DUMPFILE --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="dumptofile"> This denotes the place for a text dump file to be produced. The default format of the %> | ||
<% dumpfile is RDF/XML and is able to be added or removed from another model through the use of the transfer tool. %> | ||
<% <Param name="dumptolanguage"> This denotes the language the rdf is in. Predefined values for lang are "RDF/XML", %> | ||
<% "N-TRIPLE", "TURTLE" (or "TTL") and "N3". * null represents the default language, "RDF/XML". "RDF/XML-ABBREV" is %> | ||
<% a synonym for "RDF/XML". %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Param name="dumptofile">filename=data/vivo-additions.rdf.xml</Param> | ||
|
||
<!--OUTPUT : for more information please see the given config file --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="output"> The model described by this config file is the model that will be produced which will %> | ||
<% contain the data which is in the minuend but not in the subtrahend. %> | ||
<% %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
|
||
<!-- <Param name="output">diff-output.model.xml</Param> --> | ||
|
||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="selective-diff"> Tells Diff to use the selectiveDiff method in execute. If any "update-types" %> | ||
<% parameters (below) are set, this flag is implicitly set. This flag exists mostly for the case where one wishes %> | ||
<% to use selectiveDiff without specifying update types. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
|
||
<!-- <Param name="selective-diff">T</Param> --> | ||
|
||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="update-types"> Each update-types entry specifies a type allowed to be updated in the process of %> | ||
<% a diff, meant primarily for creating subtraction models. Untested for addition models! %> | ||
<% %> | ||
<% Specifying any type at all will cause Diff to use the selectiveDiff() method, leading to unspecified types %> | ||
<% being preserved. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
|
||
<!-- <Param name="update-types">http://xmlns.com/foaf/0.1/Person</Param> --> | ||
<Param name="wordiness">INFO</Param> | ||
</Task> |
86 changes: 86 additions & 0 deletions
86
...ts/full-harvest-examples/1.13-1.15-examples/example-openalex/diff-subtractions.config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2010-2011 VIVO Harvester Team. For full list of contributors, please see the AUTHORS file provided. | ||
All rights reserved. | ||
This program and the accompanying materials are made available under the terms of the new BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.html | ||
--> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% The diff tool is used to compare jena models and produce a result model which is the first model (minuend) %> | ||
<% with any matching statements in the second model (subtrahend) removed from it. %> | ||
<% ===== %> | ||
<% This tool produces the graph-math difference of the triples between two models. It produces a model with the %> | ||
<% triples which are in the minuend and not in the subtrahend. %> | ||
<% Expressed mathematically as minuend - subtrahend = difference %> | ||
<% Neither the minend nor the subtrahend are altered. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Task> | ||
<!--INPUT --> | ||
<!--MINUEND : for more information please see the given config file --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="minuend"> The model described by this config file is the model which has the data which will be in %> | ||
<% output model. %> | ||
<% %> | ||
<% %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Param name="minuend">previous-harvest.model.xml</Param> | ||
|
||
<!--SUBTRAHEND : for more information please see the given config file --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="subtrahend"> The model described by this config file contains the triples which are not goning to %> | ||
<% be within the output model. If the triples match any within the minuend model then the output will be smaller %> | ||
<% than the minuend. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Param name="subtrahend">harvested-data.model.xml</Param> | ||
|
||
<!--DUMPFILE --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="dumptofile"> This denotes the place for a text dump file to be produced. The default format of the %> | ||
<% dumpfile is RDF/XML and is able to be added or removed from another model through the use of the transfer tool. %> | ||
<% <Param name="dumptolanguage"> This denotes the language the rdf is in. Predefined values for lang are "RDF/XML", %> | ||
<% "N-TRIPLE", "TURTLE" (or "TTL") and "N3". * null represents the default language, "RDF/XML". "RDF/XML-ABBREV" is %> | ||
<% a synonym for "RDF/XML". %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
<Param name="dumptofile">filename=data/vivo-subtractions.rdf.xml</Param> | ||
|
||
<!--OUTPUT : for more information please see the given config file --> | ||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="output"> The model described by this config file is the model that will be produced which will %> | ||
<% contain the data which is in the minuend but not in the subtrahend. %> | ||
<% %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
|
||
<!-- <Param name="output">diff-output.model.xml</Param> --> | ||
|
||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="selective-diff"> Tells Diff to use the selectiveDiff method in execute. If any "update-types" %> | ||
<% parameters (below) are set, this flag is implicitly set. This flag exists mostly for the case where one wishes %> | ||
<% to use selectiveDiff without specifying update types. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
|
||
<!-- <Param name="selective-diff">T</Param> --> | ||
|
||
<!-- | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
<% <Param name="update-types"> Each update-types entry specifies a type allowed to be updated in the process of %> | ||
<% a diff, meant primarily for creating subtraction models. Untested for addition models! %> | ||
<% %> | ||
<% Specifying any type at all will cause Diff to use the selectiveDiff() method, leading to unspecified types %> | ||
<% being preserved. %> | ||
<% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %> | ||
--> | ||
|
||
<!-- <Param name="update-types">http://xmlns.com/foaf/0.1/Person</Param> --> | ||
<Param name="wordiness">INFO</Param> | ||
</Task> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that lines 3-7 includes this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that adding:
to root-level
.gitignore
will solve this issue.