ontoportal-lirmm / bioportal_web_ui

A Rails application for ontologies portal.
http://agroportal.lirmm.fr/
Other
6 stars 5 forks source link

Make the list of properties field in the submission form and the metadata administration includes all the properties listed in the `submission_metadata` endpoint. #200

Closed syphax-bouazzouni closed 4 months ago

syphax-bouazzouni commented 1 year ago

The metadata properties selector component, does not include all the properties listed in the /submission_metadata API endpoint

image
syphax-bouazzouni commented 1 year ago

update the code with this hard-coded list (done here https://github.com/ontoportal-lirmm/bioportal_web_ui/commit/88e3e098b1b0fce599050772d4dbc4f5c4622295)

 [
     :format, format_equivalent],
     :version,
      :status,
      [:location, location_equivalent],
      :URI,
      :deprecated,
      :hasOntologySyntax,
      :hasFormalityLevel,
      :isOfType,
      :naturalLanguage,
      :description,
      :homepage,
      :documentation,
      :publication,
      :usedOntologyEngineeringTool,
      :abstract, :notes, :keywords, :alternative, :identifier,
      :knownUsage,
      :designedForOntologyTask,
      :hasDomain,
      :coverage,
      :example,
      :conformsToKnowledgeRepresentationParadigm,
      :usedOntologyEngineeringMethodology,
      :accrualMethod,
      :accrualPeriodicity,
      :accrualPolicy,
      :competencyQuestion,
      :versionIRI,
      :source,
      :isFormatOf,
      :hasFormat,
      :includedInDataCatalog,
      :depiction,
      :logo,
      :associatedMedia,
      :released,
      :modificationDate,
      :valid,
      :curatedOn,
      :publisher,
      :hasLicense,
      :morePermissions,
      :copyrightHolder,
      :contact,
      :hasContributor,
      :hasCreator,
      :audience,
      :toDoList,
      :useGuidelines,
      :repository,
      :bugDatabase,
      :mailingList,
      :award,
      :wasGeneratedBy,
      :wasInvalidatedBy,
      :curatedBy,
      :endorsedBy,
      :fundedBy,
      :translator,
      :useImports,
      :hasPriorVersion,
      :isAlignedTo,
      :ontologyRelatedTo,
      :isBackwardCompatibleWith,
      :isIncompatibleWith,
      :comesFromTheSameDomain,
      :similarTo,
      :explanationEvolution,
      :generalizes,
      :hasDisparateModelling,
      :hasPart,
      :usedBy,
      :workTranslation,
      :translationOfWork,
      :preferredNamespacePrefix,
      :preferredNamespaceUri,
      :keyClasses,
      :endpoint,
      :dataDump,
      :csvDump,
      :openSearchDescription,
      :uriLookupEndpoint,
      :uriRegexPattern,
      :metadataVoc,
      :exampleIdentifier,
      :numberOfClasses,
      :numberOfIndividuals,
      :numberOfProperties,
      :entities,
      :numberOfAxioms
    ]
syphax-bouazzouni commented 1 year ago

@hibadjebabria169 test and close if done

syphax-bouazzouni commented 1 year ago

Also, the format and location are somehow special, they include other properties. See below what they includes

  def format_equivalent
    %w[hasOntologyLanguage prefLabelProperty synonymProperty definitionProperty authorProperty obsoleteProperty obsoleteParent]
  end

  def location_equivalent
    %w[summaryOnly pullLocation]
  end
hibadjebabria169 commented 1 year ago

So, here's the properties that i didn't found on the list :

syphax-bouazzouni commented 1 year ago

I can't include ontology metadata properties, like Acronyms, Titles, and Access rights, group, catagories ..., (the ones that are listed here: https://data.stageportal.lirmm.fr/ontology_metadata)

I can only access the submissions fields for now (and listed here https://data.stageportal.lirmm.fr/submission_metadata)

syphax-bouazzouni commented 4 months ago

Done https://github.com/ontoportal-lirmm/bioportal_web_ui/pull/669

jonquet commented 4 months ago

Is there an equivalent issue so we can also see/select the metadata attributes of the ontolgy object: https://data.agroportal.lirmm.fr/ontology_metadata

syphax-bouazzouni commented 4 months ago

Is there an equivalent issue so we can also see/select the metadata attributes of the ontology object: https://data.agroportal.lirmm.fr/ontology_metadata

this new input can select ontologies and submission properties, or do you mean a selector for only ontology properties?

jonquet commented 4 months ago

Ahh ok. Good then.