Fix named graph constraints
rdf/rdf.scm
511 | 511 | (g2 (rdf-dataset-default-graph d2)) | |
512 | 512 | (ng1 (rdf-dataset-named-graphs d1)) | |
513 | 513 | (ng2 (rdf-dataset-named-graphs d2))) | |
514 | - | (list 'and (pk 'simpl (simplify-constraints (pk 'default (generate-graph-constraints g1 g2)))) | |
514 | + | (list 'and (simplify-constraints (generate-graph-constraints g1 g2)) | |
515 | 515 | (if (null? ng1) | |
516 | 516 | 'none | |
517 | 517 | (fold (lambda (ng1 constraints) | |
… | |||
523 | 523 | (fold (lambda (ng2 constraints) | |
524 | 524 | (list 'or (list 'and (list 'equiv n1 (car ng2)) | |
525 | 525 | (simplify-constraints | |
526 | - | (generate-graph-constraints g1 g2))) | |
526 | + | (generate-graph-constraints | |
527 | + | g1 (cdr ng2)))) | |
527 | 528 | constraints)) | |
528 | 529 | 'bot | |
529 | 530 | (filter (lambda (g2) (blank-node? (car g2))) ng2)) | |
… | |||
557 | 558 | "Compare two datasets and return whether they are isomorphic." | |
558 | 559 | (let* ((constraints (generate-dataset-constraints d1 d2)) | |
559 | 560 | (disjunctions (to-disjunctions constraints))) | |
560 | - | (pk 'dis disjunctions) | |
561 | 561 | (if (list? disjunctions) | |
562 | 562 | (let loop ((disjunctions (filter sat? disjunctions))) | |
563 | 563 | (match disjunctions |