-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
When encoding the example described in Section 3.1.2 of the PROV-JSON document using the prov library, the generated JSON output differs from what is shown in the documentation.
Specifically, the output produced by prov is:
import prov.model as prov
document = prov.ProvDocument()
document.set_default_namespace('http://example.org/default')
document.add_namespace('ex', 'http://example.org/')
document.agent('e1', {prov.PROV_TYPE: 'prov:Person'})
document.serialize(format='json')) # =>
# {
# "prefix": {
# "ex": "http://example.org/",
# "default": "http://example.org/default"
# },
# "agent": {
# "e1": {
# "prov:type": "prov:Person"
# }
# }
# }
However, the PROV-JSON document shows the following output for the same example:
...
"agent": {
"e1": {
...
"prov:type": {
"$": "prov:Person",
"type": "xsd:QName"
}
}
...
},
...
It seems that it should be represented as an xsd:QName according to the document.
prov version: 2.1.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels