-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add fixture data for non-numeric ids. Refs #813 * Update URIGenerator pattern and fix bug. Refs #813
- Loading branch information
1 parent
3cd3502
commit 61274d6
Showing
5 changed files
with
115 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" | ||
Testdata containing blue birds such as the famous Norwegian Blue | ||
.. versionadded:: 2.0.0 | ||
""" | ||
|
||
|
||
from skosprovider.providers import DictionaryProvider | ||
from .bluebirds_data import BLUEBIRDSDATA | ||
|
||
bluebirds = DictionaryProvider( | ||
{'id': 'BLUEBIRDS'}, | ||
BLUEBIRDSDATA | ||
) |
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,72 @@ | ||
BLUEBIRDSDATA = [ | ||
{ | ||
'id': 'http://id.bluebirds.org/bird', | ||
'uri': 'http://id.bluebirds.org/bird', | ||
'type': 'concept', | ||
'labels': [{'label': 'Bird', 'type': 'prefLabel', 'language': 'en'}, {'label': 'Vogel', 'type': 'prefLabel', 'language': 'nl'}], | ||
'notes': [], | ||
'sources': [], | ||
'narrower': ['parrot', '579A439C-1A7A-476A-92C3-8A74ABD6B3DB'], | ||
'broader': [], | ||
'related': [], | ||
'member_of': [], | ||
'subordinate_arrays': [], | ||
'matches': {'close': [], 'exact': [], 'related': [], 'broad': [], 'narrow': []} | ||
}, | ||
{ | ||
|
||
'id': 'parrot', | ||
'uri': 'http://id.bluebirds.org/parrot', | ||
'type': 'concept', | ||
'labels': [{'label': 'Parrot', 'type': 'prefLabel', 'language': 'en'}, {'label': 'Papegaai', 'type': 'prefLabel', 'language': 'nl'}], | ||
'notes': [], | ||
'sources': [], | ||
'narrower': ['norwegianblue'], | ||
'broader': [], | ||
'related': [], | ||
'member_of': [], | ||
'subordinate_arrays': [], 'matches': {'close': [], 'exact': [], 'related': [], 'broad': [], 'narrow': []} | ||
}, | ||
{ | ||
'id': 'norwegianblue', | ||
'uri': 'http://id.bluebirds.org/norwegianblue', | ||
'type': 'concept', | ||
'labels': [{'label': 'Norwegian Blue', 'type': 'prefLabel', 'language': 'en'}, {'label': 'Noorse Blauwe', 'type': 'prefLabel', 'language': 'nl'}], | ||
'notes': [], | ||
'sources': [], | ||
'narrower': [], | ||
'broader': ['parrot'], | ||
'related': [], | ||
'member_of': [], | ||
'subordinate_arrays': [], | ||
'matches': {'close': [], 'exact': [], 'related': ['http://id.slugs.org/slug'], 'broad': [], 'narrow': []} | ||
}, | ||
{ | ||
'id': '579A439C-1A7A-476A-92C3-8A74ABD6B3DB', | ||
'uri': 'http://id.bluebirds.org/579A439C-1A7A-476A-92C3-8A74ABD6B3DB', | ||
'type': 'concept', | ||
'labels': [{'label': 'Heron', 'type': 'prefLabel', 'language': 'en'}, {'label': 'Héron', 'type': 'prefLabel', 'language': 'fr'}, {'label': 'Reiger', 'type': 'prefLabel', 'language': 'nl'}], | ||
'notes': [], | ||
'sources': [], | ||
'narrower': ['blauwereiger'], | ||
'broader': [], | ||
'related': [], | ||
'member_of': [], | ||
'subordinate_arrays': [], | ||
'matches': {'close': [], 'exact': [], 'related': [], 'broad': [], 'narrow': []} | ||
}, | ||
{ | ||
'id': 'blauwereiger', | ||
'uri': 'http://id.bluebirds.org/blauwereiger', | ||
'type': 'concept', | ||
'labels': [{'label': 'Grey heron', 'type': 'prefLabel', 'language': 'en'}, {'label': 'Héron cendré', 'type': 'prefLabel', 'language': 'fr'}, {'label': 'Blauwe reiger', 'type': 'prefLabel', 'language': 'nl'}, {'label': 'Ardea cinerea', 'type': 'prefLabel', 'language': 'la'}], | ||
'notes': [], | ||
'sources': [], | ||
'narrower': [], | ||
'broader': [], | ||
'related': [], | ||
'member_of': [], | ||
'subordinate_arrays': [], | ||
'matches': {'close': [], 'exact': [], 'related': [], 'broad': [], 'narrow': []} | ||
} | ||
] |