-
Notifications
You must be signed in to change notification settings - Fork 2
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 #61 from pyscal/bug_fixes
Bug fixes
- Loading branch information
Showing
11 changed files
with
90 additions
and
16 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,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.1.5 | ||
current_version = 0.1.6 | ||
commit = True | ||
tag = False | ||
|
||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
These are patches specifically designed for pyscal-rdf. | ||
These may or may not be implemented in the ontology. As it is implemented; it can be removed | ||
from the patches | ||
""" | ||
|
||
import os | ||
|
||
def patch_terms(iri, rn): | ||
""" | ||
Remove functions as patching is done | ||
""" | ||
#Term: hasSymbol | ||
#Ontology: CMSO | ||
#Reason: Range is not specified in the owl file. | ||
#This prevents owlready2 from reading in this property correctly. | ||
if iri == 'http://purls.helmholtz-metadaten.de/cmso/hasSymbol': | ||
rn = ['str'] | ||
#Term: hasValue | ||
#Ontology: CMSO | ||
#Reason: Range is Literal(); however here we use this for number values, hence we can fix this. | ||
#See fn: `add_calculated_property` | ||
elif iri == 'http://purls.helmholtz-metadaten.de/cmso/hasValue': | ||
rn = ['float'] | ||
|
||
return rn | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
setup( | ||
name='pyscal_rdf', | ||
version='0.1.5', | ||
version='0.1.6', | ||
author='Abril Azocar Guzman, Sarath Menon', | ||
author_email='[email protected]', | ||
description='Ontology based structural manipulation and quering', | ||
|