Skip to content

Commit

Permalink
wikidata back #403
Browse files Browse the repository at this point in the history
  • Loading branch information
huberrob committed Sep 15, 2023
1 parent d4d0bcf commit 2731632
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions fuji_server/data/linked_vocabs/fuji_ontologies.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,11 @@
"name": "META-SHARE ontology",
"uri_format": "http://w3id.org/meta-share/meta-share/$1",
"subjects" : ["humanities", "languages and literature"]
},
"fuji.wikidata": {
"id": "fuji.wikidata",
"prefix": "wikidata",
"name": "Wikidata",
"uri_format": "https://www.wikidata.org/wiki/$1"
}
}
5 changes: 2 additions & 3 deletions fuji_server/evaluators/fair_evaluator_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ def isCreativeCommonsLicense(self,license_url, metric_id):
iscc = False
genericcc = None
try:

if 'creativecommons.org/publicdomain/mark/' in license_url:
if 'creativecommons.org/publicdomain/' in license_url:
iscc = True
self.logger.info('{0} : Found CreativeCommons Public Domain Mark -: {1}'.format(metric_id, license_url))
self.logger.info('{0} : Found CreativeCommons Public Domain Mark or License -: {1}'.format(metric_id, license_url))
genericcc = 'CC0-1.0'
else:
#https://wiki.creativecommons.org/wiki/License_Properties
Expand Down
2 changes: 1 addition & 1 deletion fuji_server/helper/linked_vocab_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, linked_vocab_index={}):
self.linked_vocab_dict = {}
self.ignore_prefixes = ['orcid','doi','isni','ror','wikipedia']
#prefixes used for identifiers only not terms
self.ignore_domain = ['orcid.org', 'doi.org','wikidata.org', 'ror.org','zenodo.org']
self.ignore_domain = ['orcid.org', 'doi.org','ror.org','zenodo.org']

def set_linked_vocab_dict(self):
print('Setting up the vocab dict.........................')
Expand Down

0 comments on commit 2731632

Please sign in to comment.