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

Bug: NCIT importer broken? #125

Open
joeflack4 opened this issue Nov 23, 2021 · 0 comments
Open

Bug: NCIT importer broken? #125

joeflack4 opened this issue Nov 23, 2021 · 0 comments

Comments

@joeflack4
Copy link
Collaborator

joeflack4 commented Nov 23, 2021

Description

When running the ccdh.importers.importer, it tries to import an ncit-termci.ttl file that was generated from TCCM. However, trying to do so appears to fail.

    def import_ncit(self):
        path = 'file:///var/lib/neo4j/import/ncit-termci.ttl'  # neo4j container location
        # path = 'file:///app/data/tccm/ncit-termci.ttl'  # ccdh-api container location
        xxx = self.graph.call('n10s.rdf.import.fetch', path, "Turtle",
                        {'predicateExclusionList': ["https://hotecosystem.org/termci/contents"]})

I was getting no messages in log when running the importer, so I debugged and examined the value of the xxx variable, and got the following error messages.

Err messages

terminationStatus | triplesLoaded | triplesParsed | namespaces | extraInfo                                                                                                                                                    | callParams
-------------------|---------------|---------------|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|------------
KO                |             0 |             0 |       null | The following constraint is required for importing RDF. Please run 'CREATE CONSTRAINT n10s_unique_uri ON (r:Resource) ASSERT r.uri IS UNIQUE' and try again. |       null

Possible solutions

1. Follow the instructions in the error message

Could potentially put this line of Python code right before the import line.

        self.graph.call('CREATE CONSTRAINT n10s_unique_uri ON (r:Resource) ASSERT r.uri IS UNIQUE')

But I have a feeling something is missing here.

Further discussion

Questions

  1. Is this indeed importing nothing, per the error message?
  2. Why doesn't this error message appear unless I'm looking in the debugger?
  3. Is that normal?
  4. If this is indeed broken, how long has it been broken?
  5. What functionality are we losing with this broken?
@joeflack4 joeflack4 changed the title x NCIT importer broken? Nov 23, 2021
@joeflack4 joeflack4 changed the title NCIT importer broken? Bug: NCIT importer broken? Nov 23, 2021
@joeflack4 joeflack4 self-assigned this Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant