diff --git a/contracts/okp4-dataverse/src/contract.rs b/contracts/okp4-dataverse/src/contract.rs index cb6ca550..84cfa8da 100644 --- a/contracts/okp4-dataverse/src/contract.rs +++ b/contracts/okp4-dataverse/src/contract.rs @@ -276,7 +276,7 @@ mod tests { ] ); - let expected_data = " . + let expected_data = " \"okp41072nc6egexqr2v6vpp7yxwm68plvqnkf6xsytf\" . . . \"2024-02-16T00:00:00Z\"^^ . diff --git a/contracts/okp4-dataverse/src/registrar/rdf.rs b/contracts/okp4-dataverse/src/registrar/rdf.rs index bf44a589..ebdfb01a 100644 --- a/contracts/okp4-dataverse/src/registrar/rdf.rs +++ b/contracts/okp4-dataverse/src/registrar/rdf.rs @@ -35,8 +35,8 @@ impl<'a> From<&'a DataverseCredential<'a>> for Vec> { Triple { subject: c_subject, predicate: VC_SUBMITTER_ADDRESS, - object: Term::NamedNode(NamedNode { - iri: credential.submitter_addr.as_str(), + object: Term::Literal(Literal::Simple { + value: credential.submitter_addr.as_str(), }), }, Triple { @@ -124,7 +124,7 @@ mod test { )) .unwrap(); - let expected = " . + let expected = " \"okp41072nc6egexqr2v6vpp7yxwm68plvqnkf6xsytf\" . . . \"2024-01-22T00:00:00\"^^ .