Skip to content

Commit e86168b

Browse files
committed
chore: Use form URI in rule premise instead of ?id
1 parent a0094b0 commit e86168b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

app/controllers/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,8 @@ export default class IndexController extends Controller {
547547
async isEventSubmitRule(rule, prefixes) {
548548
const options = { outputType: 'string' };
549549
const query = `${prefixes ? prefixes.join('\n') : ''}\n${rule}`;
550-
// TODO: We should replace ?id with the actual form URI.
551550
const reasonerResult = await n3reasoner(
552-
'?id <http://example.org/event> <http://example.org/Submit> .',
551+
`<${this.model.loadedFormUri}> <http://example.org/event> <http://example.org/Submit> .`,
553552
query,
554553
options,
555554
);

app/routes/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ export default class IndexRoute extends Route {
9898

9999
// Get policies from footprint tasks.
100100
const options = { outputType: 'string' };
101-
// TODO: We should replace ?id with the actual form URI.
102101
const reasonerResult = await n3reasoner(
103-
`?id <http://example.org/event> <http://example.org/Submit> .`,
102+
`<${formUri}> <http://example.org/event> <http://example.org/Submit> .`,
104103
content,
105104
options,
106105
);

0 commit comments

Comments
 (0)