-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PropertyList similar to ClassList, GraphList, and InstanceList
- Loading branch information
1 parent
579d271
commit 42612f9
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |