-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address JSON-LD being an array of 1 or more graphs #128
Comments
Some of the things I'm indexing for POLDER search are like this, and it seems to work okay, but it's shaped slightly differently. I'm thinking specifically of http://hedeby.uwaterloo.ca/api/metadata?page=1 and its subsequent pages. |
Yes, EC sees things that are being done as 'DataCatalog's so they contain multiple 'Datasets' and that needs to be handled in some manner. |
#121 is another example |
@nein09 So graphs shaped like the following are working OK for you? The example you shared doesn't have the root level [] surrounding the package though. That is the issue that is showing up. @valentinedwv I have a fix for this sitting in some off-line code, I can work this in. source: view-source:https://pogo-ocean.org/pogo-member/ird-institut-de-recherche-pour-le-developpement/ [{
"@context": "https://schema.org/",
"@type": "Organization",
"name": "Partnership for Observation of the Global Ocean",
"url": "https://www.ird.fr/",
"sameAs": [],
"logo": {
"@type": "ImageObject",
"url": "https://pogo-ocean.org/wp-content/uploads/2022/10/logo_IRD_2016_LONGUEUR_FR_BLANC_coloured.png",
"width": 1451,
"height": 337
},
"address": {
"streetAddress": "Research Institute for Development, Boulevard de Dunkerque, Marseille, France"
},
"image": [{
"@type": "ImageObject",
"@id": "https://pogo-ocean.org/pogo-member/ird-institut-de-recherche-pour-le-developpement/#primaryimage",
"url": "https://pogo-ocean.org/wp-content/uploads/2022/10/logo_IRD_2016_LONGUEUR_FR_BLANC_coloured.png",
"width": "1451",
"height": "337"
}]
}] |
@fils I'm not sure- I can tell you that something like this is fine, though:
|
This issue seems to be in the file https://github.com/gleanerio/gleaner/blob/dev/internal/summoner/acquire/jsonutils.go where isValid and addToJsonListIfValid needs to address the [json] approach |
opencore?
** errors **
|
In cases like at:
https://oceanscape.org/organisation/deep-ocean-stewardship-initiative/
This array could be 1 or more graphs.
Gleaner needs to detect arrays and then process each item.
Related, could we provide a list of top level types to index? This would require introspection and be slow, so really this should be in Nabu.
The text was updated successfully, but these errors were encountered: