-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Provide feedback on schemes present. Refs #35 * Allow specifying which conceptscheme to use. Refs #35 * Filtering van concepten op basis van hun concept scheme. Refs #35 * Add an example with multiple conceptschemes. Refs #35 * Updating Python versions. Refs #63 * Test search matches. Refs #65 * Add long description content type. Refs #58 * Update dependencies. * Refactoring of tests to use pytest. Refs #19 * Refactor writing html. Refs #68 (#70)
- Loading branch information
1 parent
933971e
commit ce5c318
Showing
22 changed files
with
1,184 additions
and
675 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
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,42 @@ | ||
# -*- coding: utf-8 -*- | ||
''' | ||
This examples fetches only one conceptscheme from a turtle file containing two. | ||
''' | ||
|
||
import os | ||
|
||
from rdflib import Graph | ||
|
||
from skosprovider_rdf.providers import RDFProvider | ||
|
||
graph = Graph() | ||
|
||
file = os.path.join(os.path.dirname(__file__), '..', 'tests', 'data', 'waarde_en_besluit_types.ttl') | ||
graph.parse(file, format="turtle") | ||
|
||
provider = RDFProvider( | ||
{'id': 'WAARDETYPES'}, | ||
graph, | ||
concept_scheme_uri = 'https://id.erfgoed.net/thesauri/waardetypes' | ||
) | ||
|
||
print("provider.get_all()") | ||
print("------------------") | ||
print(provider.get_all()) | ||
print("") | ||
|
||
print("provider.find({'label': 'esthetische waarde'})") | ||
print("-----------------------------------") | ||
print(provider.find({'label': 'esthetische waarde'})) | ||
print("") | ||
|
||
|
||
print("provider.get_by_id(46)") | ||
print("--------------------------------------------------------") | ||
print(provider.get_by_id('46')) | ||
print("") | ||
|
||
print("provider.get_by_uri('https://id.erfgoed.net/thesauri/waardetypes/46')") | ||
print("---------------------------------------------------------") | ||
print(provider.get_by_uri('https://id.erfgoed.net/thesauri/waardetypes/46')) | ||
print("") |
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,4 +1,4 @@ | ||
skosprovider==0.6.1 | ||
# -e git+https://github.com/koenedaele/skosprovider.git#egg=skosprovider | ||
skosprovider==0.7.0 | ||
# -e git+https://github.com/koenedaele/skosprovider.git@DEV_0.7.0#egg=skosprovider | ||
rdflib==4.2.2 | ||
html5lib==1.0.1 |
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 |
---|---|---|
|
@@ -24,9 +24,10 @@ | |
|
||
setup( | ||
name='skosprovider_rdf', | ||
version='0.6.0', | ||
version='0.7.0', | ||
description='skosprovider_rdf', | ||
long_description=README + '\n\n' + HISTORY, | ||
long_description_content_type='text/x-rst', | ||
package_data={'': ['LICENSE']}, | ||
package_dir={'skosprovider_rdf': 'skosprovider_rdf'}, | ||
include_package_data=True, | ||
|
@@ -39,10 +40,9 @@ | |
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
], | ||
author='Flanders Heritage Agency', | ||
author_email='[email protected]', | ||
|
Oops, something went wrong.