gbv / bartoc.org

Source code of BARTOC.org user interface
https://bartoc.org/
23 stars 10 forks source link

Error 422 when saving #159

Closed SArndt-TIB closed 2 years ago

SArndt-TIB commented 2 years ago

This JSKOS record could not be saved - seht ihr, was mir noch fehlt? Danke für Hinweise!

The entity undefined already exists in the database.

{
  "ADDRESS": {
    "country": "Germany"
  },
  "API": [],
  "CONTACT": "metadata4ing@nfdi4ing.de",
  "FORMAT": [
    {
      "uri": "http://bartoc.org/en/Format/OWL"
    }
  ],
  "definition": {
    "en": [
      "The ontology Metadata4Ing is developed within the NFDI Consortium NFDI4Ing with the aim of providing a thorough framework for the semantic description of research data, with a particular focus on engineering sciences and neighbouring disciplines. This ontology allows a description of the whole data generation process (experiment, observation, simulation), embracing the object of investigation, all sample and data manipulation procedures, a summary of the data files and the information contained, and all personal and institutional roles. The subordinate classes and relations can be built according to the two principles of inheritance and modularity. \"Inheritance\" means that a subclass inherits all properties of its superordinate class, possibly adding some new ones. Modularity means that all expansions are independent of each other; this makes possible for instance to generate expanded ontologies for any possible combinations of method × object of research."
    ],
    "und": [
      "Die Ontologie Metadata4Ing wird im Rahmen des NFDI-Konsortiums NFDI4Ing mit dem Ziel entwickelt, einen umfassenden Rahmen für die semantische Beschreibung von Forschungsdaten zu schaffen, wobei der Schwerpunkt auf den Ingenieurwissenschaften und benachbarten Disziplinen liegt. Diese Ontologie ermöglicht eine Beschreibung des gesamten Datenerzeugungsprozesses (Experiment, Beobachtung, Simulation), die den Untersuchungsgegenstand, alle Proben- und Datenmanipulationsverfahren, eine Zusammenfassung der Datendateien und der enthaltenen Informationen sowie alle persönlichen und institutionellen Rollen umfasst. Die untergeordneten Klassen und Beziehungen können nach den beiden Prinzipien der Vererbung und der Modularität aufgebaut werden. \"Vererbung\" bedeutet, dass eine Unterklasse alle Eigenschaften ihrer übergeordneten Klasse erbt und möglicherweise einige neue hinzufügt. Modularität bedeutet, dass alle Erweiterungen unabhängig voneinander sind; dies ermöglicht es beispielsweise, erweiterte Ontologien für alle möglichen Kombinationen von Methode × Forschungsgegenstand zu erstellen."
    ]
  },
  "extent": "31 classes, 120 properties, 21 individuals",
  "identifier": [
    "https://fairsharing.org/3804"
  ],
  "languages": [
    "en",
    "de"
  ],
  "license": [
    {
      "uri": "http://creativecommons.org/licenses/by/4.0/"
    }
  ],
  "notation": [
    "m4i"
  ],
  "prefLabel": {
    "de": "Metadata4Ing",
    "en": "Metadata4Ing"
  },
  "startDate": "2022",
  "subject": [
    {
      "uri": "http://dewey.info/class/62/e23/",
      "inScheme": [
        {
          "uri": "http://bartoc.org/en/node/241"
        }
      ],
      "notation": [
        "62"
      ]
    }
  ],
  "subjectOf": [
    {
      "url": "https://git.rwth-aachen.de/nfdi4ing/metadata4ing/metadata4ing/-/issues"
    }
  ],
  "type": [
    "http://www.w3.org/2004/02/skos/core#ConceptScheme",
    "http://w3id.org/nkos/nkostype#ontology"
  ],
  "url": "https://w3id.org/nfdi4ing/metadata4ing/1.0.0"
}

The request included a token for authentification.

SArndt-TIB commented 2 years ago

Sorry, I will try this out: https://github.com/gbv/bartoc.org/issues/65

SArndt-TIB commented 2 years ago

65 did not help me, unfortunately. The 422 error appears as soon as I enter minimum data for a new record:

{
  "API": [],
  "prefLabel": {
    "und": "Metadata4Ing"
  },
  "type": [
    "http://www.w3.org/2004/02/skos/core#ConceptScheme"
  ]
}

Is there any other way of adding a new resource? Thanks for looking into this :-)

nichtich commented 2 years ago

Sorry for inconvenience and thanks for testing. We will give BARTOC an update next week to fix this and related issues.

nichtich commented 2 years ago

Creation of new vocabularies should work again. I've created https://bartoc.org/en/node/20402 for Metadata4Ing.

DavidBRohrer commented 2 years ago

Added all the metadata shown above to the Metadata4Ing-Entry.

SArndt-TIB commented 2 years ago

Thanks a lot! :-)