Skip to content

Commit 489ef78

Browse files
Merge pull request #103 from terminusdb/postReleaseFixes
changing @type to appear as rdf:type in query panel
2 parents 524e859 + 7a97304 commit 489ef78

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/tdb-dashboard/src/components/DataProductDocuments.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export const DataProductDocuments = () => {
4949
for(var key in property) {
5050
if(key=="parent_class") continue
5151
if(key=="@key") continue
52-
props.push(key)
52+
if(key === "@type") {
53+
// pass rdf:type instead
54+
props.push("rdf:type")
55+
}
56+
else props.push(key)
5357
}
5458
setPropertyButtons(props)
5559
}
@@ -90,7 +94,7 @@ export const DataProductDocuments = () => {
9094
}
9195
return <Badge title={`${val} ${id} available`}
9296
className="ml-3 cursor-auto text-gray"
93-
variant="dark">{val}</Badge>
97+
bg="secondary">{val}</Badge>
9498
}
9599

96100
const DocumentMenu = ({item, handleClassClick}) => {

packages/tdb-dashboard/src/queries/GeneralQueries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const getPropertyRelation = (id, dataProduct, woqlClient) => {
6060
let user=woqlClient.user()
6161
let dp = `${user.id}/${dataProduct}`
6262

63-
return WOQL.limit(1).triple("v:Subject", id, "v:Predicate")
63+
return WOQL.limit(100).triple("v:Subject", id, "v:Predicate")
6464
}
6565

6666
// query to store query object in query library database

0 commit comments

Comments
 (0)