Skip to content

#648 0027-out.jsonld: @graph and value objects #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/fromRdf-manifest.html
Original file line number Diff line number Diff line change
Expand Up @@ -1421,11 +1421,11 @@ <h2>
<dd>List of lists</dd>
<dt>input</dt>
<dd>
<a href='fromRdf/li02-in.nq'>fromRdf/li02-in.nq</a>
<a href='fromRdf/li03-in.nq'>fromRdf/li03-in.nq</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems to be unrelated to the title of the issue. Furthermore, the HTML versions of the manifest are generated, if I am not mistaked -- and in any case, if the change is valid, it should be made in the RDF version of the manifest as well...

Suggested change
<a href='fromRdf/li03-in.nq'>fromRdf/li03-in.nq</a>
<a href='fromRdf/li02-in.nq'>fromRdf/li02-in.nq</a>

</dd>
<dt>expect</dt>
<dd>
<a href='fromRdf/li02-out.jsonld'>fromRdf/li02-out.jsonld</a>
<a href='fromRdf/li03-out.jsonld'>fromRdf/li03-out.jsonld</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

Suggested change
<a href='fromRdf/li03-out.jsonld'>fromRdf/li03-out.jsonld</a>
<a href='fromRdf/li02-out.jsonld'>fromRdf/li02-out.jsonld</a>

</dd>
<dt>Options</dt>
<dd>
Expand Down
101 changes: 45 additions & 56 deletions tests/fromRdf/0027-out.jsonld
Original file line number Diff line number Diff line change
@@ -1,56 +1,45 @@
{
"@graph": [
{
"@id": "http://example.com/boolean-native",
"http://example.com/example": [
{
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
"@value": true
},
{
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
"@value": false
}
]
},
{
"@id": "http://example.com/boolean-object",
"http://example.com/example": [
{
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
"@value": "True"
},
{
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
"@value": "False"
}
]
},
{
"@id": "http://example.com/number-native",
"http://example.com/example": [
{
"@type": "http://www.w3.org/2001/XMLSchema#integer",
"@value": 1
}
]
},
{
"@id": "http://example.com/number-object",
"http://example.com/example": [
{
"@type": "http://www.w3.org/2001/XMLSchema#double",
"@value": "0.1e999999999999999"
},
{
"@type": "http://www.w3.org/2001/XMLSchema#double",
"@value": "+INF"
},
{
"@type": "http://www.w3.org/2001/XMLSchema#double",
"@value": "-INF"
}
]
}
]
}
[
{
"@id": "http://example.com/boolean-native",
"http://example.com/example": [
{"@value": true},
{"@value": false}
]
},
{
"@id": "http://example.com/boolean-object",
"http://example.com/example": [
{
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
"@value": "True"
},
{
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
"@value": "False"
}
]
},
{
"@id": "http://example.com/number-native",
"http://example.com/example": [
{"@value": 1}
]
},
{
"@id": "http://example.com/number-object",
"http://example.com/example": [
{
"@type": "http://www.w3.org/2001/XMLSchema#double",
"@value": "0.1e999999999999999"
},
{
"@type": "http://www.w3.org/2001/XMLSchema#double",
"@value": "+INF"
},
{
"@type": "http://www.w3.org/2001/XMLSchema#double",
"@value": "-INF"
}
]
}
]