elsevierlabs-os / linked-data Goto Github PK
View Code? Open in Web Editor NEWLinked Data Extension for VSCode
Home Page: https://marketplace.visualstudio.com/items?itemName=Elsevier.linked-data
License: Other
Linked Data Extension for VSCode
Home Page: https://marketplace.visualstudio.com/items?itemName=Elsevier.linked-data
License: Other
Thanks for this great tool!
In the context of solid we often have RDF serialized .acl
files. Specifically they usually serialised in turtle. Could this extension add support to apply syntax highlighting to those files by default if there is no other syntax highlighting already applied to .acl
by other extensions.
{
"@context": {"@vocab": "http://schema.org/"},
"@graph": [
{
"@type":"schema:Thing",
"@id":"https://data.example.com/thing/1",
"isLogic-as-Boolean": true,
"isLogic-as-String" : "YES"
}
]
}
when transformed to Turtle gives
@prefix schema: <http://schema.org/>.
@prefix thing: <https://data.example.com/thing/>.
thing:1
a <schema:Thing>;
schema:isLogic-as-Boolean false;
schema:isLogic-as-String "YES".
Note that true
is now false
which is not logical.
Conversion to N-quads gives
<https://data.example.com/thing/1> <http://schema.org/isLogic-as-Boolean> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://data.example.com/thing/1> <http://schema.org/isLogic-as-String> "YES" .
<https://data.example.com/thing/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <schema:Thing> .
Here the true
is recognized as a true Boolelan, which is logical.
Other serialisations (compact, flatten, expanded) behave logical, from the true
perspective at least.
It will be great to add the possibility of converting to Mermaid.
Maybe CRITERIA can be reused.
Hi!
Just discovered your extension and really like its capabilities.
Could you please provide an update to detect whether or not dark-mode is set and invert the colors of the labels in the visualization so we can read them?
Thanks!
In order to support this extension vscodium editors (that have the telemetry from vscode stripped) it needs to be published to the openvsx marketplace.
I would be very grateful if this could be supported (and this has also been requested in https://forum.solidproject.org/t/solid-app-development-tech-tools-stack-recommentation/5838/7).
Hello
I have noticed that when using a TTL to query with optional where clauses, the output doesn't allow for blank values and therefore shifts the populated values of one column into the unpopulated value.
For example, if I run the below query:
# file: example_file.ttl
prefix ex: <http://www.example.com>
select ?Name ?City ?PhoneNumber ?DateOfBirth
where {
?Name ex:LivesIn ?City.
?Name ex:BornOn ?DateOfBirth.
optional {?Name ex:HasPhoneNumber ?PhoneNumber.}
}
And my data has incomplete phone numbers and hence is being queried as an optional data point, I am seeing something like the below returned:
Name | City | PhoneNumber | DateOfBirth |
---|---|---|---|
Fred | London | 1996-01-02 | |
Dave | Manchester | +44123456789 | 1985-12-13 |
Sarah | Cardiff | 1992-10-30 |
The lack of phone number for Fred and Sarah sees their dates of birth slip into the phone number column.
I would expect it to look like the below:
Name | City | PhoneNumber | DateOfBirth |
---|---|---|---|
Fred | London | 1996-01-02 | |
Dave | Manchester | +44123456789 | 1985-12-13 |
Sarah | Cardiff | 1992-10-30 |
This appears on both the CSV output and the HTML view.
Remote "@context" is not properly supported, i.e. https not recognized.
Create a file with content:
{
"@context": "https://www.w3.org/ns/activitystreams",
"actor": "https://other_domain/users/phoenix",
"id": "https://other_domain/users/phoenix#likes/557",
"object": "https://my_domain/activitypub/helge/id567",
"type": "Like"
}
run Linked-Data: Compact
file:///home/helge/code/bovine/tests/data/https%3A/www.w3.org/ns/activitystreams. Detail: Unable to read file '/home/helge/code/bovine/tests/data/https:/www.w3.org/ns/activitystreams' (Error: Unable to resolve nonexistent file '/home/helge/code/bovine/tests/data/https:/www.w3.org/ns/activitystreams')
and
Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.
The SHACL graph get loaded fine, but I get:
this.dataset.match is not a function
Any ideas?
Given
@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:alice
ex:name "Alice" ;
ex:age "25"^^xsd:integer .
ex:bob
ex:name "Bob" ;
ex:age "25"^^xsd:integer .
ex:charlie
ex:name "Charlie" ;
ex:age "25"^^xsd:integer .
ex:dave
ex:name "Dave" ;
ex:age "25"^^xsd:integer .
running the following query
PREFIX ex: <http://example.org/>
select ?name ?age
where {
?person ex:name ?name .
OPTIONAL{?person ex:age ?age.}
}
gives the following expected result
But executing the same query on this input:
@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:alice
ex:name "Alice" .
# ex:age "25"^^xsd:integer .
ex:bob
ex:name "Bob" ;
ex:age "25"^^xsd:integer .
ex:charlie
ex:name "Charlie" ;
ex:age "25"^^xsd:integer .
ex:dave
ex:name "Dave" ;
ex:age "25"^^xsd:integer .
give this result:
with this data result:
"Alice"
"Bob";"25"
"Charlie";"25"
"Dave";"25"
As I raised in william-vw/vscode-extension-n3#1; it would be great of this extension could support Notation3 syntax by using the https://github.com/william-vw/vscode-extension-n3 extension.
Linked Data Extension v1.0.6
VSCode/Windows Version:
I am using your example for SHACL validation by placing the shapes attribute as a comment with the relative path to the shapes file:
# shapes: shacl_example_shapes.ttl
@prefix ex: <https://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:Alice
a ex:Person ;
ex:ssn "987-65-432A" .
However, still a dialog opens asking me to select the shapes file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.