Skip to content

Demo..fuseki server #5

Closed
Closed

Description

@PatrickF-mbse

Hi,

Thank you for sharing.. very useful to learn how the Integration web, query, fuseki is done. I am interested to use it for modelling an open source autopilot system. Currently I am using excel that contains

  • objects (class id, o Id, attributes on a single spreadsheet
  • an other spreadsheet containing relationship information : link type name, parent,child and attributes).

I wrote a vba code that convert this data to a cypher script and the script is used to create the model in Neo4j as a graph database. Neo4j generate the ontological metamodel automcally after running the cypher script.

I would like to try to achieve the same with OML...I have a very large numbers of object and relationships. Is there a limitation using OML and this fuseki server? I am not an expert of opencaesar and curious to know if you think this would be feasible? I need to find out how to generate oml by script reading an excel input. Any advice welcome.
Thank you
Regards

Activity

  1. melaasar commented on Mar 5, 2023

    @melaasar
    Member

    You will first need to create an OML project that adds at least core-vocabularies (OML standard library) as a dependency (in build.gradle). Then you can develop your Excel-to-OML generator and optionally invoke it from the Gradle script so it's orchestrated with the other build tasks.

    You need to generate from the Excel doc two artifacts: an OML vocabulary (metamodel) defining the terms, and an OML description (system model) using the terms. The generated vocabulary will be mostly syntactical. This is enough if you are only interested in running SPARQL queries against the assertions. But, if you also want to run the reasoner to generate logical entailments, to detect inconsistencies and simplify queries, you need to add DL semantics to the vocabulary by setting the DL flags on the terms and/or adding extra inference rules.

    For the generator itself, you can either develop a model-to-model transformation using the OML Java API, i.e., work at the abstract syntax level then ask the resulting resources to save to get the textual syntax (serialization). Or, you could develop a model-to-text transformation to generate the textual syntax directly. OML supports a custom textual grammar (.oml), a XML-based one (.omlxmi) and a JSON-based one (.omljson).

  2. melaasar commented on Mar 5, 2023

    @melaasar
    Member

    The only limitation of the Fuseki server is that it runs on a single machine, so it is technically bound by that machine's resources. However, practically, I did not run into this limitation yet, even on a large (millions of triples) dataset.

    For OML itself, if you worked at the abstract syntax level, i.e., OML data loaded in memory, you are bound by the size of memory of course. However, since OML ontologies declare their imports (of other ontologies) explicitly, when you load an OML ontology in memory, it will cause only its import closure (its dependent ontologies) to lazily load, not the entire dataset. So by fragmenting your dataset into multiple ontologies, and managing the import relationships between them, you can easily avoid running into this limitation.

  3. PatrickF-mbse commented on Mar 7, 2023

    @PatrickF-mbse
    Author
  4. PatrickF-mbse commented on Mar 7, 2023

    @PatrickF-mbse
    Author
  5. melaasar commented on Mar 9, 2023

    @melaasar
    Member

    P.S.: I moved this thread to the community repo, since it's more of a general question on openCAESAR..

    Do you think this neo4j Json export (see attached file) could be converted automatically to oml using Opencaesar?

    Btw. I did not get that Json export. Anyway, the fact that this is a JSON file does not automatically make it an OML file. Such JSON would have to conform to the OMLJSON schema. So, it could possibly be transformed into that with some JSON to JSON transformation.

    These picture are the metamodel that would corresponding to OML vocabulary right?

    I did not get those pictures.

    My workflow would become: excel -> Neo4j -> Neo4j Json metamodel export ->omljson->Openceasar easier?

    Since Neo4J JSON to OML JSON is not free, I think an alternative workflow Excel -> OML should be simpler.

  6. added
    question
    on Mar 9, 2023
  7. locked and limited conversation to collaborators on Mar 9, 2023
  8. converted this issue into a discussion #6 on Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions