Skip to content

Commit f34e124

Browse files
committedAug 30, 2021
fix: Convert data to SparqlDataAccessor in regex config
1 parent 042507a commit f34e124

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
 

‎config/storage/backend/regex.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,17 @@
5656
"accessor": { "@id": "urn:solid-server:default:MemoryDataAccessor" }
5757
},
5858
{
59+
"comment": "SparqlDataAccessor only accepts quad objects so data to that route needs to be converted",
5960
"@id": "urn:solid-server:default:SparqlResourceStore",
60-
"@type": "DataAccessorBasedStore",
61-
"identifierStrategy": { "@id": "urn:solid-server:default:IdentifierStrategy" },
62-
"auxiliaryStrategy": { "@id": "urn:solid-server:default:AuxiliaryStrategy" },
63-
"accessor": { "@id": "urn:solid-server:default:SparqlDataAccessor" }
61+
"@type": "RepresentationConvertingStore",
62+
"options_inConverter": { "@id": "urn:solid-server:default:RepresentationConverter" },
63+
"options_inType": "internal/quads",
64+
"source": {
65+
"@type": "DataAccessorBasedStore",
66+
"identifierStrategy": { "@id": "urn:solid-server:default:IdentifierStrategy" },
67+
"auxiliaryStrategy": { "@id": "urn:solid-server:default:AuxiliaryStrategy" },
68+
"accessor": { "@id": "urn:solid-server:default:SparqlDataAccessor" }
69+
}
6470
}
6571
]
6672
}

0 commit comments

Comments
 (0)
Please sign in to comment.