Giter Site home page Giter Site logo

arangordf's People

Contributors

amahanna avatar cw00dw0rd avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arangordf's Issues

Input Directory Support

Add support for supplying a directory as an import location. Ideally, this could account for multiple formats either by ignoring files without the specified format or offer a way to supply multiple formats.

adb_graph = adb_rdf.import_rdf("./examples/data/", format=["xml", "ttl"], config=config, save_config=True)

Introduce basic test suite

We can use some of the ArangoRDF demo snippets listed in README.md and tests/test.py to create a set of unit tests via pytest. This should then solidify the reason for some CICD via Github Actions.

The following functionality should be tested:

  • Import RDF into ArangoDB
  • Export RDF from ArangoDB
  • Re-import RDF export into ArangoDB
  • Setting/getting configurations

Introduce CICD via Github Actions

Following #10, it would be best to create a set of Github Workflows to cover the following:

  1. Code analysis via CodeQL action
  2. Build/test automation (I.e install dependencies, lint codebase with black/isort, run tests via pytest, pubblish coverage to coveralls
  3. Release automation (build automation, release via twine, update changelog)

RDF to Linked Property Graph Translation (Remove `import_ontology` methods)

Translate RDF to be more ArangoDB styled graph.
Possible additions:

  • Initialize collections based on OWL/RDFS meta model via parsing supplied file/url
  • Collections are created for RDF types (ex: song collection containing song documents)
    • Class collection containing classes (ex: document describing song class type)
  • Literals become properties on statement documents

Currently, the import_ontology methods attempt to perform these operations, but the method name and current functionality are not functional and require a lot more work.

Implementing this translation method will align with the ArangoDB model better and offer better performance and analytics use cases.

Context Preserving for Statements Missing

Currently, on import, a statement is defined as an edge, and its _from and _to attributes are hashed values.

IRI/123 -> Statement/ea84082de (predicate) <- Literal/a4a (Fred)

This same statement could be generated in the event that the same IRI points towards Fred, and as the _key values are generated based on at least _type and _value, the documents will be updated by default and the same goes for the edge statement.

This is a correct outcome but does not fit 1-1 when attempting to export and isn't aware of the context for the statement. This could be describing a different Fred or the same thing could be being said about Fred by another person. So, even though it is the same statement, it could have a different context. This is currently not accounted for with our current implementation and should be addressed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.