Skip to content

Commit

Permalink
Add PropertyList similar to ClassList, GraphList, and InstanceList
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Aug 23, 2024
1 parent 579d271 commit 42612f9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/components/PropertyList.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script setup>
import QueryResultList from './QueryResultList.vue'
import { useSelectionStore } from '../stores/selection'
</script>

<template>
<QueryResultList title="Property List" search query="select distinct ?property { {?s ?property ?o} union {?property a <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property>} union {?property a <http://www.w3.org/2002/07/owl#ObjectProperty>} union {?property a <http://www.w3.org/2002/07/owl#DatatypeProperty>} } order by ?property" select-variable="property" ref="propertyList" :activeResource="property_iri" :selectResource="selectProperty" /></template>

<script>
import rdf from '@rdfjs/data-model'
export default {
name: 'PropertyList',
props: {
property_iri: String,
selectProperty: Function
},
watch: {
graph_iri (value) {
console.log('graph_iri changed' + value)
this.$refs.propertyList.updateList()
}
},
}
</script>

0 comments on commit 42612f9

Please sign in to comment.