-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and test bug generating SPARQL on union of two nodes where one is…
… not the "head" because it has incoming (reverse) connections
- Loading branch information
Paul Cuddihy
committed
Jan 25, 2021
1 parent
f5e82cd
commit fc7e379
Showing
3 changed files
with
195 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
155 changes: 155 additions & 0 deletions
155
sparqlGraphLibrary/src/test/resources/chain_node_minus_union.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"version": 2, | ||
"sparqlConn": { | ||
"name": "Junit localhost virt", | ||
"domain": "", | ||
"enableOwlImports": true, | ||
"model": [ | ||
{ | ||
"type": "virtuoso", | ||
"url": "http://localhost:8890/sparql", | ||
"graph": "http://junit/GG2NQYY2E/200001934/both" | ||
} | ||
], | ||
"data": [ | ||
{ | ||
"type": "virtuoso", | ||
"url": "http://localhost:8890/sparql", | ||
"graph": "http://junit/GG2NQYY2E/200001934/both" | ||
} | ||
] | ||
}, | ||
"sNodeGroup": { | ||
"version": 12, | ||
"limit": 0, | ||
"offset": 0, | ||
"sNodeList": [ | ||
{ | ||
"propList": [ | ||
{ | ||
"KeyName": "linkName", | ||
"ValueType": "string", | ||
"relationship": "http://www.w3.org/2001/XMLSchema#string", | ||
"UriRelationship": "http://kdl.ge.com/junit/chain#linkName", | ||
"Constraints": "", | ||
"fullURIName": "", | ||
"SparqlID": "?linkName_0", | ||
"isReturned": false, | ||
"optMinus": 0, | ||
"isRuntimeConstrained": false, | ||
"instanceValues": [], | ||
"isMarkedForDeletion": false, | ||
"binding": "?linkName", | ||
"isBindingReturned": true | ||
} | ||
], | ||
"nodeList": [], | ||
"NodeName": "Link", | ||
"fullURIName": "http://kdl.ge.com/junit/chain#Link", | ||
"SparqlID": "?Link_0", | ||
"isReturned": false, | ||
"isRuntimeConstrained": false, | ||
"valueConstraint": "", | ||
"instanceValue": null, | ||
"deletionMode": "NO_DELETE", | ||
"binding": "?Link", | ||
"isBindingReturned": false | ||
}, | ||
{ | ||
"propList": [], | ||
"nodeList": [ | ||
{ | ||
"SnodeSparqlIDs": [ | ||
"?Link_0" | ||
], | ||
"OptionalMinus": [ | ||
-2 | ||
], | ||
"Qualifiers": [ | ||
"" | ||
], | ||
"DeletionMarkers": [ | ||
false | ||
], | ||
"KeyName": "firstLink", | ||
"ValueType": "Link", | ||
"UriValueType": "http://kdl.ge.com/junit/chain#Link", | ||
"ConnectBy": "firstLink", | ||
"Connected": true, | ||
"UriConnectBy": "http://kdl.ge.com/junit/chain#firstLink" | ||
} | ||
], | ||
"NodeName": "Chain", | ||
"fullURIName": "http://kdl.ge.com/junit/chain#Chain", | ||
"SparqlID": "?Chain", | ||
"isReturned": false, | ||
"isRuntimeConstrained": false, | ||
"valueConstraint": "", | ||
"instanceValue": null, | ||
"deletionMode": "NO_DELETE" | ||
}, | ||
{ | ||
"propList": [ | ||
{ | ||
"KeyName": "linkName", | ||
"ValueType": "string", | ||
"relationship": "http://www.w3.org/2001/XMLSchema#string", | ||
"UriRelationship": "http://kdl.ge.com/junit/chain#linkName", | ||
"Constraints": "FILTER regex(%id, \"1$\")", | ||
"fullURIName": "", | ||
"SparqlID": "?linkName", | ||
"isReturned": true, | ||
"optMinus": 0, | ||
"isRuntimeConstrained": false, | ||
"instanceValues": [], | ||
"isMarkedForDeletion": false | ||
} | ||
], | ||
"nodeList": [], | ||
"NodeName": "Link", | ||
"fullURIName": "http://kdl.ge.com/junit/chain#Link", | ||
"SparqlID": "?Link", | ||
"isReturned": false, | ||
"isRuntimeConstrained": false, | ||
"valueConstraint": "", | ||
"instanceValue": null, | ||
"deletionMode": "NO_DELETE" | ||
} | ||
], | ||
"orderBy": [], | ||
"unionHash": { | ||
"1": [ | ||
"?Link", | ||
"?Link_0" | ||
] | ||
} | ||
}, | ||
"importSpec": { | ||
"version": "1", | ||
"baseURI": "", | ||
"columns": [], | ||
"dataValidator": [], | ||
"texts": [], | ||
"transforms": [], | ||
"nodes": [ | ||
{ | ||
"sparqlID": "?Link", | ||
"type": "http://kdl.ge.com/junit/chain#Link", | ||
"mapping": [], | ||
"props": [] | ||
}, | ||
{ | ||
"sparqlID": "?Chain", | ||
"type": "http://kdl.ge.com/junit/chain#Chain", | ||
"mapping": [], | ||
"props": [] | ||
}, | ||
{ | ||
"sparqlID": "?Link_0", | ||
"type": "http://kdl.ge.com/junit/chain#Link", | ||
"mapping": [], | ||
"props": [] | ||
} | ||
] | ||
} | ||
} |