Could not expand input before compaction.
On CamionNet, I get the following error when trying to create a Service
:
Could not expand input before compaction.
I tried both the following server side context as well as the rdf_context
parameter + the context of the CDN :
{
"@context": {
"@vocab": "http://happy-dev.fr/owl/#",
"foaf": "http://xmlns.com/foaf/0.1/",
"doap": "http://usefulinc.com/ns/doap#",
"ldp": "http://www.w3.org/ns/ldp#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"acl": "http://www.w3.org/ns/auth/acl#",
"name": "rdfs:label",
"vehicle_type": "rdfs:label",
"permissions": "acl:accessControl",
"mode": "acl:mode",
"view": "acl:Read",
"change": "acl:Write",
"add": "acl:Append",
"delete": "acl:Delete",
"control": "acl:Control"
}
}
My sib-form>
is :
<sib-form
data-src="{{ domain }}/api/services/"
data-fields="set1, set2, set3"
value-vehicle-value="Le véhicule"
value-service-value="Le type de prestation"
value-comment-value="Commentaire"
set-set1="vehicle-value, immatriculation, parc_number, costs_by_vehicle_type"
set-set2="service-value, disinfection, interior, exterior, decontamination"
set-set3="comment-value, comment"
widget-vehicle-value="sib-display-div"
widget-service-value="sib-display-div"
widget-comment-value="sib-display-div"
widget-disinfection="sib-form-checkbox"
widget-interior="sib-form-checkbox"
widget-exterior="sib-form-checkbox"
widget-decontamination="sib-form-checkbox"
label-immatriculation="Immatriculation"
label-parc_number="Numéro de parc"
label-costs_by_vehicle_type="Type de véhicule"
label-disinfection="DES"Mon contexte serveur
label-interior="INT"
label-exterior="EXT"
label-decontamination="DEC"
range-costs_by_vehicle_type="{{ domain }}/api/vehicles/"
extra-context='{"vehicle_type":"rdfs:label"}'
></sib-form>
This is what gets POSTed on the serveur :
{
"@context": "http://owl.openinitiative.com/oicontext.jsonld",
"@graph": [
{
"@id": "./",
"http://happy-dev.fr/owl/#comment": "Bim",
"http://happy-dev.fr/owl/#comment-value": "Commentaire",
"http://happy-dev.fr/owl/#costs_by_vehicle_type": {
"@id": "http://127.0.0.1:8000/api/vehicles/1/"
},
"http://happy-dev.fr/owl/#decontamination": "on",
"http://happy-dev.fr/owl/#disinfection": "on",
"http://happy-dev.fr/owl/#exterior": "on",
"http://happy-dev.fr/owl/#immatriculation": "4354 CU 75",
"http://happy-dev.fr/owl/#interior": "on",
"http://happy-dev.fr/owl/#parc_number": 435,
"http://happy-dev.fr/owl/#service-value": "Le type de prestation",
"http://happy-dev.fr/owl/#vehicle-value": "Le véhicule"
}
]
}