Giter Club home page Giter Club logo

inclde's People

Contributors

dependabot[bot] avatar pfeil avatar seprodev avatar

Watchers

 avatar  avatar  avatar

inclde's Issues

updateEvent is not yet production ready

The updateEvent is currently more of a hack for local tests, and therefore not shown in the readme. You can find details in the automatically generated readme of the inclde-editor component. Currently, it is thrown on redraw of the component, which is not exactly what we need.

Add abstractions for data model and autocomplete implementations

Note: Some of these are long-term tasks with low priority.

The data is currently a flattened JSON-LD document (a JS array), and we can not exchange it easily. This would be desirable to be more flexible with maintenance, but is not of urgent importance.

The autocomplete feature will likely experience requests:

  • more implementations, maybe on configuration basis rather than constant implementations (due to being very specialized)
  • more configuration, e.g. restrictions (shacl?) and other kinds of filters or extensions

What first comes to mind:

  • APIs/interfaces for exchangeable implementations
  • An implementation wrapping the structure/autocomplete as-is. The access methods must replace the util functions used to access the data. Instead of an index, we should consider using the @id attribute and how to handle the problems this approach will experience (ill-formed documents).

Benefits:

  • easier to add new features and fix bugs without introducing new bugs
  • makes access better testable, as we move shared state management from multiple components into a central place

Output compaction fails, validate completeness of output

The compaction of the output does not work due to some error in the library we use (jsonld). The issue is known and has to be worked around, probably with a custom document loader implementation working around http/s inconsistencies.

In this context, it should also be double-checked that we do not accidentally remove information by only returning graph content.

"primitive" data types of schema.org are handled as objects

Example: Adding a schema.org/Text to a schema.org/name array, results in:

name: [ {"@id": "asdf" } ]

Instead, the user should have the possibility to make it a direct value, like this:

name: [ {"@value": "asdf" } ]

Workaround? Using the JSON primitives results in this, which is unknown if it is valid:

name: [ "asdf" ]

In any case, it should be clear to the user how to do it properly.


Or in other words: The assistants for creating relations and nodes always want to have an ID for a type (which is not a JSON primitive). But in some cases it means we need primitives, which needs to be resolved.


  • research: check if name: [ "asdf" ] is valid, which should help to evaluate an appropriate solution
  • find an elegant solution for those "primitives"

Implement round-tour test

Feeding the component with its output might help to detect errors. We can do this manually, but we can also try to implement this as an automated test. I am unsure if this will work with all the shadow DOMs, but it is worth a try.

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.