After some fiddling I can return data from a content tag set
with a query like this
{clauseSections(where: {rdfs_label: {pattern: "def"}} ) {rdfs_labeltopic {label}uri}}
This successfully returns details from the linked topic.
But I cant get a query to work the restricts the subjects by properties of the topics. I cant find examples of syntax for:
The fallback for any type of filter is SPARQL:
https://www.topquadrant.com/graphql/graphql-queries.html#sparql
Did you try that?
1) filtering main object on properties of nested objects
2) filtering if a value is present ( _is_null)
To check for non-existence of a property, you can probably use maxCount 0
{
concepts(where: {
hidden: {
maxCount: 0
}}) {
uri
}
}
3) combining (AND and OR) filters
Also, I created property shapes for the subject root class and tagging property in order to make this work to retrieve details of , but perhaps there is some way of making this happen (I created and ran SHACL rules to enforce this.. so its repeatable - but have I duplicated something?)
Sounds good. The GraphQL engine is based on the presence of SHACL definitions, so if no such property shapes exist, the engine will not offer GraphQL fields.
Holger
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/deda2c9b-08c1-4d51-8dfa-cde898e02c04n%40googlegroups.com.
Is topic an object property shape or a literal-valued one? (Can you show the shape declarations).
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/23302d9c-5e26-4b11-8449-7491452b402bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/e9612855-1c65-46ec-a443-0543995dee60n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CABfSiRPnHm%3D9Rtj90ooPVeU2ZM4VmfuCh%3DhODqBF4sKFSjw6-A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/35D6D3A1-B948-4917-9BEC-06FD15498558%40topquadrant.com.
:Content1 corpus:topic conceptA
:Content 1 corpus:topic conceptB
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CABfSiROSUWbBvp0NgZ4fYKRLqAPwes7Y8vRf%3DpPcjugtwiYJAg%40mail.gmail.com.
:Content1 corpus:topic conceptA:Content 1 corpus:topic conceptB
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/577AC852-606F-4650-9CF2-DB033730F3B7%40topquadrant.com.
On Jul 14, 2020, at 8:25 PM, Rob Atkinson <rob.at...@surroundaustralia.com> wrote:
Might weigh in here to separate some concerns:1) When using a ContentTagSet ( linking a DataGraph to a Taxonomy - via corpus:topic ) there are two apparent problems that may be the same in fact:a ) adding "topic" to the search result columns doesnt show values for topics - even though individual items show topics in both the form view and the tagging panel, and GraphQL queries return topic values OK.b) Cannot find a means to filter on topic in the GraphQL
2) We cannot find a natural way in the (new) editor to simply find all things with a given tag, or browse tags that are actually present - manually adding the topic column every time you view the asset column is a sub-optimal option anyway - are we missing something here?
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/ec341be2-ee9c-4955-a0aa-32d3d86ae465n%40googlegroups.com.