Questions tagged [stardog]

Questions related the Stardog RDF database.

Stardog is a fast, lightweight, RDF database: it supports ; HTTP and the SNARL protocol for remote access and control; as a data model; and for inference and data analytics. It also has advanced features such as full-text search via integration with and integrity constraints.

There is a mailing list and extensive documentation available online.


Related tags :

97 questions
47
votes
2 answers

"or" in a SPARQL query

I don't quite understand why in SPARQL they haven't implemented the basic logic operators. However in most of the cases is possible to obtain the same result in a number of way. The purpose of this question is to have a quick reference for the…
ffa
  • 747
  • 1
  • 6
  • 14
5
votes
1 answer

Can't get Stardog to run on Mac OS X

I just download Stardog and I'm trying to run it on my machine (Mac OS X 10.14.2). I use ZSH shell and I have added the following two lines in my .zshrc file: export STARDOG_HOME="/Applications/stardog-6.1.0" export…
ste
  • 3,087
  • 5
  • 38
  • 73
5
votes
2 answers

How do I create a PID trap for multiple commands separated by &&

I'm running Stardog 4.0 in an Ubuntu 15.04 container with open jdk8 which runs fine. I want to handle gracefully shutting down stardog using a trap. To execute stardog in a container so that it continues to run I've been using the following which…
conteh
  • 1,544
  • 1
  • 17
  • 39
4
votes
2 answers

How do I query for instances that are anonymously typed?

Suppose I have a class (cls), an object property (has_part) and an individual (ind). The individual is rdf:type'd to be (in manchester syntax) (has_part only cls). Basically, the individual is said to be typed as the anonymous class which has as…
Josh Hanna
  • 55
  • 5
3
votes
2 answers

Sending SPARQL queries from C# using stardog: "cannot execute update query on read endpoint"

as the title says i'm trying to create triples using SPARQL queries from visualstudio. Using the same SPARQL queries inside stardog studio works, but when i try to send them from visualstudio using the stardogconnector i get the following error: An…
3
votes
1 answer

What does the "identifier" in "Graph" do?

I try to query a database like this: from rdflib import Graph, Literal, URIRef from rdflib.namespace import RDF, SKOS from rdflib.plugins.stores import sparqlstore # define endpoint according to https://www.stardog.com/docs/ endpoint =…
Cleb
  • 25,102
  • 20
  • 116
  • 151
3
votes
1 answer

Can we use Stardog to query .ttl files?

I'm asking myself a question : I have a .ttl file stored somewhere on the internet (let's say http://www.example/org/myFile) and I want to query it. Can I use Stardog to query it ? Something like (in node.js) const stardog = new Stardog({ …
Clement B
  • 218
  • 1
  • 4
  • 14
3
votes
1 answer

Different reasoning results between Stardog and Protege

I'm trying to understand why I'm obtaining different results between Stardog and Protege reasoning. I have the following ontology in both tools: Number Class: Number Number DisjointUnionOf OddNumber,EvenNumber OddNumber OddNumber subClassOf…
semanticuy
  • 31
  • 1
3
votes
1 answer

SPARQL query which triggers Stardog rules

I'm trying out a custom Stardog rule. The custom rule basically looks like the following: @prefix rule: . [] a rule:SPARQLRule ; rule:content """ PREFIX : IF { ?x a :Person; :has_yob ?yob. …
tstorms
  • 4,941
  • 1
  • 25
  • 47
3
votes
1 answer

Single SPARQL query returning JSON hierarchy

I am doing some testing on Stardog data retrieval and I am not sure how to address the following: I have a Stardog database that I query via HTTP URL (http://localhost:5820/myDB/query?query=...) and Accept = "application/sparql-results+json" I have…
Jiron
  • 31
  • 1
3
votes
1 answer

Map blank nodes from stardog to pubby

So I have this .rdf that I have loaded onto Stardog and then I am using Pubby running over Jetty, to browse the triple store. In my rdf file, I have several blank nodes which is given a blank node identifier by stardog. So this is a snippet of the…
Abhay
  • 235
  • 1
  • 3
  • 8
2
votes
3 answers

How to calculate distance between two points using geosparql

I'm trying to calculate the distance between two points using geosparql. I have objects like the following image (same properties, different values): And I'm executing that query in sparql: PREFIX geos:…
2
votes
3 answers

Promise error when querying Stardog with NodeJS

Trying to query a locally run Stardog database from a Node JS application. The query returns results when run in the Stardog interface. When running it in Node, something gets messed up with the promise which returns null and an error. (node:1248)…
Znowman
  • 385
  • 1
  • 5
  • 19
2
votes
1 answer

Can't infer an interesting pizza

I have loaded the pizza ontology into Stardog and Blazegraph, along with some triples I authored, including a pizza with four toppings. I have tried to make the toppings distinct, as @AKSW suggested. The pizza ontology defines an interesting pizza…
Mark Miller
  • 3,011
  • 1
  • 14
  • 34
2
votes
2 answers

HTTP GET request with headers and parameters in Angular 2

I was trying to get some data from a Stardog triple store into Angular, but I am really struggling with getting it to work. I have no problem accessing the service from curl with the exact same headers and parameters. I also tried omitting the…
MadsHolten
  • 77
  • 1
  • 6
1
2 3 4 5 6 7