Questions tagged [topbraid-composer]

Topbraid Composer is a semantic web modeling tool for RDF/OWL graphs and SPARQL queries.

TopBraid Composer is a semantic web modeling tool for RDF/OWL graphs and SPARQL queries.

Editions:

In order to get TopBraid Composer Free Edition, select "Free Edition" in the "Product" drop-down list on the "Installation" page.

53 questions
1
vote
1 answer

Embedding a path in the parameter of sh:lessThan

Connected to this question (and its previous ones): Using sh:maxExclusive to compare (the values of) two datatype properties I created a small ontology with three classes: DataSubject, MemberState, and Minor. There are two datatype properties:…
1
vote
1 answer

How to input inferred triples to (other) SHACL rules?

I recently approached SHACL and I really like it. I have a problem with SHACL rules and I wonder if any of you could help me. I created this small ontology, a portion of a much bigger ontology for the GDPR that I am working on. # baseURI:…
1
vote
2 answers

SHACL Rule Execution on New Instances?

I have an application wherein I used SPIN constructors as a means to implement Event/Condition/Action (ECA) policies. ECA is one classic construct for policies. The Event, in this case, was always the assertion of a class on an individual which…
Greg Cox
  • 287
  • 1
  • 12
1
vote
1 answer

Change PREFIX in SPARQL

I created an ontology with different prefixes (rdf:, rdfs:, owl:, example:, car:, bike:, ...). I use them to demarcate different domains and examples. A small extract: car:Software rdf:type demo:CyberObject. car:Hardware rdf:type…
Grapheneer
  • 897
  • 8
  • 25
1
vote
1 answer

How to direct RDF4J to use SPIN RDF triples when sp:text is present in imported RDF file?

I'm using RDF4J server and workbench version 2.2.2. I'm using a SPIN-capable repository in RDF4J, and I'm reading an RDF file I've created in TobBraid Composer Free Edition (TBC FE) containing many spin:construct rules. TBD FE is set to include…
Greg Cox
  • 287
  • 1
  • 12
1
vote
1 answer

Use COUNT inside a CONSTRUCT function in SPARQL

I am trying to write a SPIN-Rule that will count the number of incoming references and set this number as a property value. E.g., count number of Issues that occurred on a particular machine. Therefore I need to count the number of incoming…
Grapheneer
  • 897
  • 8
  • 25
1
vote
1 answer

Convertering between textual SPARQL syntax and the SPIN RDF Vocabulary: How to add rdfs:comment and sp:text

Using the SPIN API (http://topbraid.org/spin/api/) and working from the example code at https://github.com/spinrdf/spinrdf/blob/master/src-examples/org/topbraid/spin/examples/SPINParsingExample.java I'm trying to add handling of rdfs:comment and…
Greg Cox
  • 287
  • 1
  • 12
1
vote
2 answers

SPIN constraint using CONSTRUCT: where do the CONSTRUCT's triples go?

I'm using TopBraid Composer Free Edition (5.1.3) to create ontologies including SPIN constraints. I then load the resulting RDF files into RDF4J (2.0.1) and use RDF4J Workbench for testing. I'm working on SPIN constraints. Here's an example to…
Greg Cox
  • 287
  • 1
  • 12
1
vote
0 answers

RDF4J Workbench: Why is One SPIN Constructor Very Slow?

I apologize for the length of this posting. I am trying to make this slow rule issue reproducible. I'm using TopBraid Composer FE to create an RDF file with ontology and SPIN constructors. He purpose of the SPIN constructors is to check for…
Greg Cox
  • 287
  • 1
  • 12
1
vote
1 answer

When does a SPIN:rule run?

I'm using TopBraid Free Edition to create OWL ontologies with SPIN rules. I'm loading the ontology and SPIN rules into Sesame OpenRDF Workbench: Application Name OpenRDF Workbench Version 4.1.2 Runtime Information Operating System Windows 8.1…
Greg Cox
  • 287
  • 1
  • 12
1
vote
1 answer

Why did TopBraid Composer FE re-group my multiple OR conditions in a SPIN rule filter?

I'm using TopBraid Composer Free Edition (TBC FE) Version 5.1.3. I'm building SPIN rules / CONSTRUCT queries. Part of my query has a FILTER statement with multiple OR'd conditions. I enter it into TBC FE as follows: FILTER ( (?orgString =…
Greg Cox
  • 287
  • 1
  • 12
1
vote
1 answer

How to get the arithmetic result of a comment in TopBraid Composer?

In TopBraid Composer, I save all my SPARQL queries as Comments in separate instances. I want to calculate their value and I want that value in a separate instance. For example, my SPARQL queries is 2 * 3 and when I run it, the result is 6. Here my…
mishaqman
  • 29
  • 4
1
vote
3 answers

Conditional subquery in SPIN function (SPARQL)

How do I change the query formula based on whether or not a variable is bound? I am invoking the magic property like this: WHERE { VALUES (?subj) { ([my bound positional parameter value goes here...]) } ?subj :myMagicProperty…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
1
vote
1 answer

How add a new class at my ontology thanks to a SPARQL query?

I have my ontology and I am capable of running SPARQL queries like SELECT queries. But I can't find a way to add/create a new class for my ontology. I look for a solution online but all information I saw are modifications of the ontology. I mean…
Perceeval
  • 11
  • 4
1
vote
1 answer

Need help understanding how SPARQL queries from input file

I am working with SPARQL and having trouble understanding how it actually goes through the input file. For example, I have three orders of the same product from three different businesses. In my query, it works when there are only two purchases to…
user1843804
  • 33
  • 1
  • 5