-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from uogbuji/magic
Versa pipeline improvements, & more
- Loading branch information
Showing
10 changed files
with
609 additions
and
169 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
scratch | ||
#PyCharm | ||
.idea | ||
.vscode | ||
MANIFEST | ||
|
||
#---- | ||
|
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
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
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
#versa.pipeline | ||
# versa.pipeline | ||
''' | ||
Framework for expressing transforms from one pattern of Versa links to another | ||
This is especially useful if you've used a tool to extract Versa from some data | ||
source but would like to tweak the interpretation of that data. It's also useful | ||
for mapping from one vocabulary to another. | ||
Useful for iterative processing or vocabulary mapping | ||
The concept is similar to XProc (http://en.wikipedia.org/wiki/XProc). You define | ||
Concept is similar to XProc (http://en.wikipedia.org/wiki/XProc). You define | ||
the overall transform in terms of transform steps or stages, implemented as | ||
Python functions. Each function can have inputs, which might be simple Versa | ||
scalars or even functions in themselves. The outputs are Versa scalars. | ||
There is also a shared environment across the steps, called the context (`versa.context`). | ||
The context includes a resource which is considered the origin for purposes | ||
There is shared context (`versa.context`) across the steps. | ||
This includes a resource which is considered the origin for purposes | ||
of linking, an input Versa model considered to be an overall input to the transform | ||
and an output Versa model considered to be an overall output. | ||
You can use the `transform` function to take a raw record in any format, | ||
define an edge stage transform to convert the raw data to an initial Versa context, | ||
and then iterate through the other defined transform stages. | ||
''' | ||
|
||
from .main import * | ||
from .core_actions import * | ||
|
Oops, something went wrong.