Skip to content
Snippets Groups Projects
Select Git revision
  • ae6600e8a762d34f0c323e0825ccc3b688b94b31
  • master default protected
  • replication_test
  • 556-usage-statistics
  • 553-semantic-recommendation-2
  • release-1.10 protected
  • dev protected
  • 553-semantic-recommendation
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • v1.10.3 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
41 results

OntologiesList.vue

Blame
  • OntologiesList.vue 1.38 KiB
    <template>
      <div>
        <v-card
          v-for="(ontology, idx) in ontologies"
          :key="idx"
          :to="`/semantic/ontology/${ontology.id}`"
          variant="flat"
          rounded="0">
          <v-divider
            class="mx-4" />
          <v-card-title>
            {{ ontology.prefix }}
          </v-card-title>
          <v-card-subtitle>
            {{ ontology.uri }}
          </v-card-subtitle>
          <v-card-text>
            <div
              class="db-tags">
              <v-chip
                v-if="ontology.sparql"
                size="small"
                color="success"
                text="SPARQL"
                variant="outlined" />
              <v-chip
                v-if="ontology.rdf"
                size="small"
                text="RDF"
                variant="outlined" />
            </div>
          </v-card-text>
        </v-card>
      </div>
    </template>
    
    <script>
    import { useUserStore } from '@/stores/user.js'
    import { useCacheStore } from '@/stores/cache.js'
    
    export default {
      data () {
        return {
          userStore: useUserStore(),
          cacheStore: useCacheStore()
        }
      },
      computed: {
        token () {
          return this.userStore.getToken
        },
        user () {
          return this.userStore.getUser
        },
        roles () {
          return this.userStore.getRoles
        },
        ontologies () {
          return this.cacheStore.getOntologies
        }
      },
      mounted () {
      },
      methods: {
      }
    }
    </script>
    
    <style>
    .db-tags .v-chip:not(:first-child) {
      margin-left: 4px;
    }
    </style>