Closed wouterbeek closed 1 year ago
Same here. Expected: https://schema.org/Place as IRI class.
Observed: <https://myplace/id/NL12> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <plac> .
I was able to reproduce and pinpoint to where the bug is introduced in code, but fixing needs a React developer. My findings:
This bug is purely frontend related and is in src/containers/Configure/ClassField.tsx. To me it looks like some form of racing condition where the Iri is set (a string) in the React state classValue
and then copied to transformationConfig.resourceClass
, but the value set to this last state is never in sync with the actual value of classValue
. This can be checked by logging the value of classValue
before line 28.
The actual value being used in the transformed RDF is not even the name of the Class of the Iri, it can actually be the value of your search string. So if you search "pErSon" and select https://schema.org/Person as Iri, the classname used in the transformed Rdf will be "pErSon" not "Person" or "person".
@wouterbeek I've released a new version that should have fixed this issue, could you check it?
@mightymax Let's test to see whether this was fixed.
@wouterbeek I was able to test this locally and the issue seems to be resolved, I will close the issue for now.
Observed
The the Configure step, if I enter/select
<https://schema.org/Person>
in the class IRI field and click on Next and download my data as RDF, the data contains class IRI<Person>
and notsdo:Person
.Expected
The configured class IRI to be used i.o. a relative IRI.
Steps to reproduce
https://schema.org/Person
in the class IRI field.<Person>
.