Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: update home endpoint to add portal config information #93

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

syphax-bouazzouni
Copy link

Require

Context

fix agroportal/project-management#592, by adding to the root endpoint, the portal configuration information, set in the configuration files. See an example bellow

{

    "acronym": "bioportal",
    "title": "NCBO BioPortal",
    "color": "#234979",
    "description": "The world's most comprehensive repository of biomedical ontologies ",
    "logo": "",
    "numberOfArtefacts": 1,
   "federated_portals": {
          "agroportal": {
                "api": "http://data.agroportal.lirmm.fr",
                "ui": "http://agroportal.lirmm.fr",
                "color": "#1e2251"
          },
          "bioportal": {
                  "api": "http://data.bioontology.org",
                  "ui": "http://bioportal.bioontology.org",
                  "color": "#234979"
              }
   },
    "fundedBy": [
              
              {
                  "img_src": "https://identity.stanford.edu/wp-content/uploads/sites/3/2020/07/block-s-right.png",
                  "url": "https://www.stanford.edu"
              },
              {
                  "img_src": "https://ontoportal.org/images/logo.png",
                  "url": "https://ontoportal.org/"
              }
      
    ],
    "@id": "http://localhost:9393/SemanticArtefactCatalogues/bioportal",
    "@type": "http://www.isibang.ac.in/ns/mod#Semanticartefactcatalogue",
    "links": {
            "provisional_classes": "http://localhost:9393/provisional_classes",
            "agents": "http://localhost:9393/agents",
            "recommender_v1": "http://localhost:9393/recommender_v1",
            "slices": "http://localhost:9393/slices",
            "ontologies": "http://localhost:9393/ontologies",
            "ontologies_full": "http://localhost:9393/ontologies_full",
            "provisional_relations": "http://localhost:9393/provisional_relations",
            "annotator": "http://localhost:9393/annotator",
            "documentation": "http://localhost:9393/documentation",
            "property_search": "http://localhost:9393/property_search",
            "groups": "http://localhost:9393/groups",
            "analytics": "http://localhost:9393/analytics",
            "metrics": "http://localhost:9393/metrics",
            "submission_metadata": "http://localhost:9393/submission_metadata",
            "ontology_metadata": "http://localhost:9393/ontology_metadata",
            "reviews": "http://localhost:9393/reviews",
            "users": "http://localhost:9393/users",
            "search": "http://localhost:9393/search",
            "submissions": "http://localhost:9393/submissions",
            "recommender": "http://localhost:9393/recommender",
            "config": "http://localhost:9393/config",
            "notes": "http://localhost:9393/notes",
            "projects": "http://localhost:9393/projects",
            "mappings": "http://localhost:9393/mappings",
            "categories": "http://localhost:9393/categories",
            "replies": "http://localhost:9393/replies",

            "@context": {
                "provisional_classes": "http://data.bioontology.org/metadata/ProvisionalClass",
                "agents": "http://xmlns.com/foaf/0.1/Agent",
                "recommender_v1": "",
                "slices": "http://data.bioontology.org/metadata/Slice",
                "ontologies": "http://data.bioontology.org/metadata/Ontology",
                "ontologies_full": "http://data.bioontology.org/metadata/Ontology",
                "provisional_relations": "http://data.bioontology.org/metadata/ProvisionalRelation",
                "annotator": "",
                "documentation": "",
                "property_search": "",
                "groups": "http://data.bioontology.org/metadata/Group",
                "analytics": "",
                "metrics": "http://data.bioontology.org/metadata/Metrics",
                "submission_metadata": "",
                "ontology_metadata": "",
                "reviews": "http://data.bioontology.org/metadata/Review",
                "users": "http://data.bioontology.org/metadata/User",
                "search": "",
                "submissions": "http://data.bioontology.org/metadata/OntologySubmission",
                "recommender": "",
                "config": "",
                "notes": "http://data.bioontology.org/metadata/Note",
                "projects": "http://data.bioontology.org/metadata/Project",
                "mappings": "http://data.bioontology.org/metadata/Mapping",
                "categories": "http://data.bioontology.org/metadata/Category",
                "replies": "http://data.bioontology.org/metadata/Reply"
             }
},

    "@context": {
        "@vocab": "http://data.bioontology.org/metadata/",
        "acronym": "http://data.bioontology.org/metadata/acronym",
        "title": "http://purl.org/dc/terms/title",
        "color": "http://data.bioontology.org/metadata/color",
        "description": "http://purl.org/dc/terms/description",
        "logo": "http://xmlns.com/foaf/0.1/logo",
        "fundedBy": "http://xmlns.com/foaf/0.1/fundedBy",
        "@language": "en"
    }

}

…points (#89)

* implement in ontology  property endpoint the display all attributes

* add a new unit test for the ontology property display all option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants