If a SALAD Schema contains a SaladRecordField with a jsonldPredicate object instead of a simple string for the predicate URI no Property-Triple is contained anymore in the RDFS output.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<http://www.example.org/basketSchema#Basket> a rdfs:Class .
Cause Analysis
In the jsonld_context.py in the method process_type in line 142 is, if the jsonldPredicate predicate is an object, erroneously checked for the property "_@id", which is never set.
The pred method used to acquire the predicate object (line 135) re-writes the _idpredicate to @id (line 55) or creates the @id predicate (line 57).
Description
If a SALAD Schema contains a SaladRecordField with a
jsonldPredicate
object instead of a simple string for the predicate URI no Property-Triple is contained anymore in the RDFS output.Minimal working example
Input schema:
RDFS Output:
Equivalent not working example
Input schema:
RDFS Output:
Cause Analysis
In the
jsonld_context.py
in the methodprocess_type
in line 142 is, if thejsonldPredicate
predicate is an object, erroneously checked for the property"_@id"
, which is never set. Thepred
method used to acquire the predicate object (line 135) re-writes the_id
predicate to@id
(line 55) or creates the@id
predicate (line 57).