Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Ability to load a services.Dataset into a Neo4J instance #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

selimyoussry
Copy link
Collaborator

@selimyoussry selimyoussry commented Jun 27, 2024

❤️ Thank you for your contribution!

Description

Add a module with the ability to load a services.Dataset into a running Neo4J instance

Improvements: this is not an efficient loading mechanism, moving to CSV imports in the near future will be preferrable

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

  • I'm aware of the code of conduct.
  • I'm aware of the contributing guidelines.
  • I've created logical separate commits and followed the commit message format.
  • If this PR resolves or addresses an issue, I've linked it in the commit message.
  • I've added relevant test cases.
  • I've added relevant documentation.
  • I've NOT included third-party code (copy/pasted source code or new dependencies).
    • If you have added third-party code (copy/pasted or new dependencies), please make sure this has been discussed in a github issue.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@@ -0,0 +1,6 @@
start-neo4j:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make, but ideally would later move this to tasks.py


# Load concept -> concept scheme relationships
for concept in concepts:
edge_type = "IsFrom"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dds_glossary/neo.py Show resolved Hide resolved
import neo4j
from owlready2 import get_ontology

logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably be better to structure the log

logger = logging.getLogger(__name__)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants