azure / opendigitaltwins-tools Goto Github PK
View Code? Open in Web Editor NEWTools for Open Digital Twins Definition Language (DTDL) RealEstateCore Ontology
License: MIT License
Tools for Open Digital Twins Definition Language (DTDL) RealEstateCore Ontology
License: MIT License
If model A references another model in its interface definition, e.g. in 'extends' or in schema of a component, than the referenced model file will only be found, if the model name equals the file name.
Working (with model 'dtmi:digitaltwins:GeoSPARQL:SpatialObject;1' defined in file 'SpatialObject.json'
{
"@id": "dtmi:digitaltwins:GeoSPARQL:Feature;1",
"@type": "Interface",
"displayName": "Feature",
"description": "This class represents the top-level feature type. This class is equivalent to GFI_Feature defined in ISO 19156:2011, and it is superclass of all feature types. GeoSPARQL 1.0 is an OGC Standard.Copyright (c) 2012 Open Geospatial Consortium.",
"extends": "dtmi:digitaltwins:GeoSPARQL:SpatialObject;1",
"contents": [
{
"@type": "Relationship",
"name": "hasGeometry",
"target": "dtmi:digitaltwins:GeoSPARQL:Geometry;1"
}
],
"@context": "dtmi:dtdl:context;2"
}
Not working (with model 'dtmi:digitaltwins:ngsi_ld:city:Address;1' defined in file 'adress.json'):
{
"@id": "dtmi:digitaltwins:ngsi_ld:city:NGSILDBaseModel;1",
"@type": "Interface",
"displayName": "NGSILDBaseModel",
"contents": [
{
"@type": "Component",
"name": "address",
"schema": "dtmi:digitaltwins:ngsi_ld:city:Address;1"
},
{
"@type": "Component",
"name": "location",
"schema": "dtmi:digitaltwins:ngsi_ld:city:geoLocation;1"
}
],
"@context": [
"dtmi:dtdl:context;2"
]
}
This also means that using ModelUploader with models that have the same name but a different namespace doesn't work.
Hi there,
I am facing an issue trying to execute the command for the OWLTODTLD converter:
I have tried the example command on my Mac through VisualStudio terminal and Mac terminal : p@@@@@@-MBP opendigitaltwins-tools % ./OWL2DTDL -u https://w3id.org/rec/full/3.3/ -i ./RecIgnoredNames.csv -o /Users/pzerva/Desktop/DTDL/
and I get : zsh: permission denied: ./OWL2DTDL
although I seem to have both r and w access to the files/folders of OWL2DTDL.
Also another question is that in the example execution a URI needs to be provided for the ontology model - what if I have some local ontologies files/models I want to convert in DTDL - is it possible to convert those and what commands I can use?
In addition is there a converter from JSON-LD twins and models to DTDL ?
Multilingual labels or comments are not properly combined in the output DTDL JSON-LD.
The following
<rdfs:Datatype rdf:about="https://data.arcadis.com/test"/>
<owl:DatatypeProperty rdf:about="https://data.arcadis.com/test">
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:DatatypeProperty>
<rdf:Description rdf:about="https://data.arcadis.com/test">
<rdfs:label xml:lang="en">Test</rdfs:label>
<rdfs:label xml:lang="nl">Test-NL</rdfs:label>
<rdfs:label xml:lang="fr">Test-FR</rdfs:label>
<rdfs:comment xml:lang="en">comment</rdfs:comment>
<rdfs:comment xml:lang="nl">Comment-NL</rdfs:comment>
<rdfs:comment xml:lang="fr">Comment-FR</rdfs:comment>
</rdf:Description>
generates the following output DTDL
{
"@type": "Property",
"description": {
"en": "comment"
},
"dtmi:dtdl:property:description;2": [
{
"@language": "nl",
"@value": "Comment-NL"
},
{
"@language": "fr",
"@value": "Comment-FR"
}
],
"displayName": {
"en": "Test"
},
"dtmi:dtdl:property:displayName;2": [
{
"@language": "nl",
"@value": "Test-NL"
},
{
"@language": "fr",
"@value": "Test-FR"
}
],
"name": "test",
"schema": "string",
"writable": true
}
What's the recommended option to upload models to ADT?
az dt model create
seems an overlap with the UploadModels
tool in this repo.
Hi, I've followed the instructions to the T with two separate subscriptions/accounts. I get the same error upon authenticating:
AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID: 7fe23b3c-ecb6-xxxxx-yyyyy-52a41bc5b4bb(mxyxadt). Resource value from request: https://digitaltwins.azure.net. Resource app ID: 0b07f429-9f4b-xxxxx-yyyyy-cc5e8e80c8b0. List of valid resources from app registration: .
{
"tenantId": "c61379a5-e150-yyyy-yyyy-42a208341ecb",
"clientId": "7fe23b3c-ecb6-yyyy-yyyy-52a41bc5b4bb",
"instanceUrl": "https://mxyxadt.api.xxx.digitaltwins.azure.net"
}
Any ideas why?
I don't think it is related, but I am using the new system-assigned identity feature in ADT. Should I not?
"A system-assigned managed identity enables Azure resources to authenticate to cloud services (e.g. Azure Key Vault) without storing credentials in code. Once enabled, all necessary permissions can be granted via Azure role-based-access-control. The lifecycle of this type of managed identity is tied to the lifecycle of this resource.Learn more."
Also, my AAD is not a "premium level" plan.
Thanks!
I have converted the Owl2DTDL to .exe in visual studio but nothing happens when I try to run .exe. Can you include a tutorial? Or provide a link.
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.