diff --git a/latest/404.html b/latest/404.html index 64e1ceb..b0aa831 100644 --- a/latest/404.html +++ b/latest/404.html @@ -1 +1 @@ -
MIT License
Copyright (c) 2021 Casper Welzel Andersen & SINTEF
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT License
Copyright (c) 2021 Casper Welzel Andersen & SINTEF
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The main turtle-canon
module.
canonize(turtle_file)
¶The main function for running turtle-canon
.
Workflow: - Validate Turtle file. Check the file integrity, readability, writeability and content. - Parse and sort Turtle file's triples. Parse Turtle file using RDFlib. Retrieve triples, sort them, and generate a new RDFlib Graph
from the sorted triples. - Export ontology as Turtle file. Overwriting loaded Turtle file, i.e., overall the canonization is done in-place.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
turtle_file | Union[Path, str] | An absolute path or | required |
Returns:
Type | Description |
---|---|
Union[Path, None] | If the file has been changed during the canonization, the Turtle file's |
Union[Path, None] | location will be returned, otherwise |
turtle_canon/canon.py
16 + |
Utility functions for turtle-canon
CLI.
Cache
¶Small cache.
turtle_canon/cli/utils.py
10 + |
Exceptions for general usage by the Turtle Canon tool.
FailedCreatingOntology
¶ Bases: TurtleCanonException
RDFlib failed to add one or more triples to a new rdflib.Graph
object.
turtle_canon/utils/exceptions.py
28 + |
Warnings for general usage by the Turtle Canon tool.
Note
These warnings are not like regular Python Warning
s. Instead, they are Exception
s that will be caught and treated specially by the CLI.
EmptyFile
¶ Bases: TurtleCanonWarning
A file's content is empty.
turtle_canon/utils/warnings.py
14 + |
{"use strict";/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var $a=/["'&<>]/;Un.exports=Ra;function Ra(e){var t=""+e,r=$a.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i