mirror of https://gitlab.com/bashrc2/epicyon
Ontology links within catalog
parent
41c6d2e286
commit
8774b1db3b
10
shares.py
10
shares.py
|
@ -1151,12 +1151,13 @@ def sharesCatalogAccountEndpoint(baseDir: str, httpPrefix: str,
|
||||||
sharesFileType: str) -> {}:
|
sharesFileType: str) -> {}:
|
||||||
"""Returns the endpoint for the shares catalog of a particular account
|
"""Returns the endpoint for the shares catalog of a particular account
|
||||||
See https://github.com/datafoodconsortium/ontology
|
See https://github.com/datafoodconsortium/ontology
|
||||||
|
Also the subdirectory ontology/DFC
|
||||||
"""
|
"""
|
||||||
today, minPrice, maxPrice, matchPattern = _sharesCatalogParams(path)
|
today, minPrice, maxPrice, matchPattern = _sharesCatalogParams(path)
|
||||||
dfcUrl = \
|
dfcUrl = \
|
||||||
"http://static.datafoodconsortium.org/ontologies/DFC_FullModel.owl#"
|
httpPrefix + '://' + domainFull + '/ontologies/DFC_FullModel.owl#'
|
||||||
dfcPtUrl = \
|
dfcPtUrl = \
|
||||||
"http://static.datafoodconsortium.org/data/productTypes.rdf#"
|
httpPrefix + '://' + domainFull + '/data/productTypes.rdf#'
|
||||||
owner = localActorUrl(httpPrefix, nickname, domainFull)
|
owner = localActorUrl(httpPrefix, nickname, domainFull)
|
||||||
if sharesFileType == 'shares':
|
if sharesFileType == 'shares':
|
||||||
dfcInstanceId = owner + '/catalog'
|
dfcInstanceId = owner + '/catalog'
|
||||||
|
@ -1239,12 +1240,13 @@ def sharesCatalogEndpoint(baseDir: str, httpPrefix: str,
|
||||||
path: str, sharesFileType: str) -> {}:
|
path: str, sharesFileType: str) -> {}:
|
||||||
"""Returns the endpoint for the shares catalog for the instance
|
"""Returns the endpoint for the shares catalog for the instance
|
||||||
See https://github.com/datafoodconsortium/ontology
|
See https://github.com/datafoodconsortium/ontology
|
||||||
|
Also the subdirectory ontology/DFC
|
||||||
"""
|
"""
|
||||||
today, minPrice, maxPrice, matchPattern = _sharesCatalogParams(path)
|
today, minPrice, maxPrice, matchPattern = _sharesCatalogParams(path)
|
||||||
dfcUrl = \
|
dfcUrl = \
|
||||||
"http://static.datafoodconsortium.org/ontologies/DFC_FullModel.owl#"
|
httpPrefix + '://' + domainFull + '/ontologies/DFC_FullModel.owl#'
|
||||||
dfcPtUrl = \
|
dfcPtUrl = \
|
||||||
"http://static.datafoodconsortium.org/data/productTypes.rdf#"
|
httpPrefix + '://' + domainFull + '/data/productTypes.rdf#'
|
||||||
dfcInstanceId = httpPrefix + '://' + domainFull + '/catalog'
|
dfcInstanceId = httpPrefix + '://' + domainFull + '/catalog'
|
||||||
endpoint = {
|
endpoint = {
|
||||||
"@context": {
|
"@context": {
|
||||||
|
|
Loading…
Reference in New Issue