Coder Social home page Coder Social logo

describo / profiles Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 10.67 MB

Describo profiles - instrument describo to create metadata

Home Page: https://describo.github.io/documentation/profiles/get-started.html

License: GNU General Public License v3.0

describo ro-crate research-object jsonld rocrate metadata-editor

profiles's Introduction

Describo Profiles

Describo is driven by profiles. A profile is a set of instructions to the UI to describe how it should act. This repository is the documentation for writing a profile. It also contains a small application you can use to validate your profile. And there are example profiles in the repository as well.

Comprehensive documentation is available @ https://describo.github.io/documentation/profiles/get-started.html

profiles's People

Contributors

marcolarosa avatar ptsefton avatar

Stargazers

 avatar

Watchers

 avatar  avatar

profiles's Issues

define metadata licence

  • add a licence property to the metadata section of the profile which is expected to be a URL. That URL should then be injected into the root descriptor as the metadata licence.

Define reverse links to be automatically created

@beepsoft I'm thinking about putting this in for my app which is more around cultural collection management. It doesn't have to be in the crate-builder / profile layer (I could just do it in my app) but I think it could be generally useful. What do you think? Does the proposed implementation make sense?


To link one entity to another we define a forward looking relationship in the profile, viz:

File : keywords -> DefinedTerm

This gives us a link from the keywords prop on a File to a Defined Term.

However, when we look at the term, we don't have a forward looking link from it back to the file, viz:

DefinedTerm : appliesTo -> File

We can get that association by looking at the @reverse links but that, semantically, doesn't mean as much as having a definite forward looking association.

So, it would be nice for a profile to be able to define a set of associations to be created automatically, ala:

{
  metadata: {},
  reverseMappings: [
    { property: 'keywords', reverse: 'appliesTo' },
    { property: 'memberOf', reverse: 'hasMember' },
    ...
  ],
  resolve: {},
  ...
}

Then, whenever an association is made from the keywords prop on any entity to another entity, the reverse will automatically be created by describo. That is, the target entity will get an appliesTo property linking back to the original entity.

When unlinking an entity from a property, if reverseMappings is defined, then both links should be removed.

If this configuration is not found in the profile then nothing happens.

Need the ability to define properties as readonly

Currently, the whole crate can be set to readonly mode but we also need to be able to define properties as being readonly; rather than just the whole crate. This likely follows the same pattern as hide and layouts.

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.