Skip to content
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

Fix 124 identifiers sha #135

Merged
merged 110 commits into from
Mar 6, 2023
Merged

Fix 124 identifiers sha #135

merged 110 commits into from
Mar 6, 2023

Conversation

valentinedwv
Copy link
Member

Add ability to set an identifier per source:

      identifierpath: []
      identifiertype: identifiersha
      # identifiertype: ""   # default normalizedjsonsha flight test if we get a different if
      # identifiertype: identifierstring  # needs sanitizing...

identifiertype

  • (normalizedjsonsha) present default is the sha of the normlized json
    • (Generate an identifier based on the whole json, if normalize produces ""
  • (identifiersha) Generate identifiers based on jsonpath.

identifierpath is a jsonpath that gets prefied to the default jsonpath.

Metadata about identifier is written to s3 user metadata.

includes the context repairs since that was the most likely normalize issue.

valentinedwv and others added 30 commits July 25, 2022 10:49
updated cobra and viper package versions
Tests to be sure arrays are not mangled by string
and that strings are not mangled by array.
Tests to be sure arrays are not mangled by string
and that strings are not mangled by array.
Tests to be sure arrays are not mangled by string
and that strings are not mangled by array.
return an identifier sha if someone asks for an unsupported string
add user metadatadetails to s3
…the original later

Clean up LdProc Normalize Tests. Empty triples will be empty triples
and glcon tools
jsonld: jsonld > corrected jsonld
rdf: jsonld > rdf
and glcon tools
jsonld: jsonld > corrected jsonld
rdf: jsonld > rdf
Added ability to just generate a sha of the json.
Was option, but not coded.
* Cleaned up tests. Files now used.
Added ability to just generate a sha of the json.
Was option, but not coded.
…x_124_identifiers_sha

# Conflicts:
#	go.mod
#	go.sum
#	internal/common/identifier_test.go
#	internal/config/sources.go
#	pkg/cli/gleaner.go
#	pkg/cli/root.go
…one.

What we need is the contexts, for the triples if it falls through to a normalizedsha
…one.

We need is the contexts, for the triples if it falls through to a normalizedsha
makefile. copy binaries up to that assets are in correct location relative to binaries
But for integration testing file is not run from this directory, so the generation may fail, and gives a warning
which muck with an approval test.
@nein09
Copy link
Collaborator

nein09 commented Mar 6, 2023

This seems to be working for me! Ship it.

Thanks!

@valentinedwv valentinedwv merged commit 5049528 into dev Mar 6, 2023
@valentinedwv valentinedwv deleted the fix_124_identifiers_sha branch September 8, 2023 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants