allegrograph

Object-to-Triple mapping using AllegroGraph RDF store? [closed]

萝らか妹 提交于 2020-01-06 02:47:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . My project is building a Java web application on top of the AllegroGraph RDF store. I would like to find a good solution to map between the triples that come out of the store and our domain objects. I have looked into Topaz, an Object/Triple mapping API being developed in the spirit of Hibernate. The trouble is

AllegroGraph check existing triple

白昼怎懂夜的黑 提交于 2020-01-04 08:00:27
问题 I am using AllegroGraph 4. I have a triple store, and I am trying to add new triples only if they don't already exist. Here is my Prolog query: (select (?news) (alfas ?news) (a-- ?news !tst:has-annotation !tst:Test))) where alfas checks for a condition(it works fine) and a-- is defined like this: (<-- (a-- ?s ?p ?o) ;; Fails unless all parts ground. (lisp (not (triple-exists-p ?s ?p ?o))) (lisp (add-triple ?s ?p ?o))) I have also tried defining it like this: (<-- (a-- ?s ?p ?o) ;; Fails

AllegroGraph check existing triple

戏子无情 提交于 2020-01-04 07:58:32
问题 I am using AllegroGraph 4. I have a triple store, and I am trying to add new triples only if they don't already exist. Here is my Prolog query: (select (?news) (alfas ?news) (a-- ?news !tst:has-annotation !tst:Test))) where alfas checks for a condition(it works fine) and a-- is defined like this: (<-- (a-- ?s ?p ?o) ;; Fails unless all parts ground. (lisp (not (triple-exists-p ?s ?p ?o))) (lisp (add-triple ?s ?p ?o))) I have also tried defining it like this: (<-- (a-- ?s ?p ?o) ;; Fails

RDF reading/parsing errors

回眸只為那壹抹淺笑 提交于 2019-12-23 16:43:45
问题 I have some RDF files which I want to import into a tripplestore(AllegroGraph), but at the first file I get a SAX parser error, stating there is an unrecognized character. After removing the line in question, everything is great. Then I have tried using the W3C RDF validator and Jena on the RDF with the error-line, but all I got was some warnings regarding undefined languages(absolutely nothing about the error-line). Could you please suggest a method(java if possible) to finding errors in RDF

AllegroGraph memoryLimit query option

核能气质少年 提交于 2019-12-23 05:17:35
问题 Where can I set AllegroGraph's memoryLimit query option that is mentioned here? I am using AllegroGraph 4.9 and keep getting QUERY_MEMORY_LIMIT_REACHED errors when I execute one of my SPARQL queries via WebView. The log says: Query has reached memory limit of 4,294,967,296 when requesting 1,089,870,432 additional bytes. <LISP query plan(?) goes here> Consider restructuring your query or increasing the value of the :memoryLimit query option. I will try to improve my query, but I would like to

Allegrograph Geospatial Prolog Queries

与世无争的帅哥 提交于 2019-12-13 14:29:44
问题 I have some triples that represent the locations of several cities. I want to be able to fire off a Prolog query like (select (?x ?y ?dist) (q- ?x !exns:geolocation ?locx) (q- ?y !exns:geolocation ?locy) (geo-distance ?locx ?locy ?dist)) but I get this error: Server returned 400: attempt to call '#:geo-distance/3' which is an undefined function. I'd like to understand how to use the geospatial reasoning methods like geo-distance (I assumed it was built-in because they use it here. Is this not

can I do this in AllegroGraph prolog?

戏子无情 提交于 2019-12-11 12:51:54
问题 I have an RDF file and I need to extract some information from it in a single line. Now, I'm using AllegroGraph with Prolog query engin : (select (?result) (q ?a !rdfs:label ?alabel) (q ?b !rdfs:label ?blabel) (lisp ?result (string+ ?alabel " AND " ?blabel))) to get the results in a single line: "{a1} AND {b1}" "{a1} AND {b2}" "{a2} AND {b1}" "{a2} AND {b2}" Now, I need to group all the rows of ?result in a single line with the string "OR". so i get: "{a1} AND {b1} OR {a1} AND {b2} OR {a2}

allegro graph - federate repositories located on different server

别来无恙 提交于 2019-12-11 06:46:43
问题 I'm trying to create an abstract repository for doing a federal search on Allegro Graph. I'm able to connect to the repositories stored on different server. However, when I tried to combined them using the federate, it throws an error that it cannot find the repo on the second server. Is there a way to combined two repositories stored on different server into an abstract repository where a federal search can be done? AGServer server = new AGServer(SERVER_URL1, USERNAME1, PASSWORD1);

Sparql - Concatenation fails if any one variable is not bound

拟墨画扇 提交于 2019-12-10 20:13:44
问题 Hi am using AllegroGraph and Sparql query to retrieve the results. This is a sample data that reproduces my issue. Consider below data where a person has first, middle and last names. <http://mydomain.com/person1> <http://mydomain.com/firstName> "John"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> <http://mydomain.com/person1> <http://mydomain.com/middleName> "Paul"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> <http://mydomain.com/person1> <http://mydomain.com/lastName>

Does Sails.js or Meteor.js work with ArangoDB or OrientDB?

拥有回忆 提交于 2019-12-10 13:18:20
问题 I'm planning to work on a social site and I would like to leverage both a document and graph database for all of the desired features. Is there a way to get Meteor.js or Sail.js (or any better) to work with ArangoDB or OrientDB? Or should I just stick with the bundled MongoDB and integrate something like allegrograph DB? 回答1: Sails.js has support for both of the databases you mention: https://www.npmjs.com/package/sails-orientdb https://github.com/rosmo/sails-arangodb In addition to MongoDB,