Hi Team,
We are trying to evaluate BI Server features .
We have enabled it for virtual graphs and able to query the data in SQL interface.
Now, we are trying to analyse the reasoning capabilities that we observed in the SPARQL query with the BI server's SQL interface.
Now we have a movie dataset stored in mongo db rendered as Virtual graphs
Next, we tried it to classify a blockbuster movie with certain range in the ontology
Applying that we are successfully able to get the data in the Sparql query as below
We are trying to achieve the same with BI Server's SQL interface with the following mapping
@prefix : <http://abc.com/movies/> .
@prefix stardog: <tag:stardog:api:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sql: <tag:stardog:api:sql:> .
:MovieTableMapping a sql:TableMapping ;
sql:tableName "Movies" ;
sql:class :blockbuster ;
sql:hasField [
sql:property :revenuecost ;
sql:fieldName "revenuecost" ;
sql:type xsd:long
] ,
[
sql:property :movietitle ;
sql:fieldName "movietitle" ;
sql:type xsd:string
] .
Below is the command that i'm using it to add the above mapping into the db
stardog data add -g tag:stardog:api:sql:schema canonical_movies cp2.ttl
But i'm unable to see any results
I have set the reasoning_schema to default as highlighted in red in the above image.
Could you pls help us to understand is this possible ?? or any mistakes in the procedure.
Note : It's working for the Virtual Knowledge Graph without reasoning as below
@prefix : <http://abc.com/movies/> .
@prefix stardog: <tag:stardog:api:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sql: <tag:stardog:api:sql:> .
:MovieTableMapping a sql:TableMapping ;
sql:tableName "Movies" ;
sql:class :film ;
sql:hasField [
sql:property :revenuecost ;
sql:fieldName "revenue" ;
sql:type xsd:integer
] ,
[
sql:property :imdb_id ;
sql:fieldName "imdb_id" ;
sql:type xsd:string
] ,
[
sql:property :movietitle ;
sql:fieldName "title" ;
sql:type xsd:string
] ,
[
sql:property :budget ;
sql:fieldName "budget" ;
sql:type xsd:integer
] .
Could you pls help us to understand is this possible to get reasoning in BI server as we get in the Sparql query ?? or any mistakes or additional requirements in the procedure. ?