Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
@eashwar11, You can specific via the SDK to recursively delete your asset tree: https://cognite-sdk-python.readthedocs-hosted.com/en/latest/core_data_model.html#delete-assetsclient.assets.delete(id=[3043982824375333], recursive=True)-Jason
@Shreyas Mehta I do not see why not…. so Yes you can. The Relationship type is just a ‘View’ that has a direct relation to a RelationshipType type. All I see is the @edge directive, sets the ‘usedFor” property of a View to be ‘edge’ vs ‘node’-Jason
@Lucas Carvalho de Sousa,Can you kindly share the model you are working to create instances for please 😀 and the full POST request?I believe that supportingCast is of type [Actor]. I believe in the above, you are creating ‘"instanceType": "node"’. With nodes, you can create direct relationships at the same time (lead), but to create the supportingCast, you need to create "instanceType": "edge" in a separate REST call. -Jason
@Lucas Carvalho de Sousa ,Ok, I get your point 😀.Given the following model and using Movie as the example:type PersonType @view(space: "imdb", version: "1") { typename: String! people: [Person] @relation(type:{space:"imdb", externalId: "Person.people"}, direction: INWARDS)}interface Person @view(space: "imdb", version: "1") { personType: PersonType name: String! age: Int}type Actor implements Person @view(space: "imdb", version: "1") { personType: PersonType name: String! age: Int wonOscar: Boolean hasDirected: Boolean movies: [Movie] @relation(type:{space:"imdb", externalId: "Movie.actors"}, direction: INWARDS)}type Director implements Person @view(space: "imdb", version: "1") { personType: PersonType name: String! age: Int wonOscar: Boolean directed: [Movie] @relation(type:{space:"imdb", externalId: "Movie.director"}, direction: INWARDS)}type Movie @view(space: "imdb", version: "1") { name: String! description: String watchedI
@Xiaofeng Wang ,Yes, I would typically create Nodes first. Any direct relations to other nodes can be parameterized to be auto created for you so that when you create those nodes, you should have consistency. Then I create edges. For me, this generally makes the most sense. We can have a quick call to review your use case if you’d like.-Jason
@Xiaofeng Wang Yes, this does seem to be a ‘feature’ of the UI. Please feel free to log as a bug in zendesk. Please note that there are UX changes coming with respect to visualizing your data in data modelling. -Jason
@Lucas Carvalho de Sousa Glad to help!autoCreateStart|End will help if you created edges before the nodes exist. This will auto create missing nodes for you. You’d still need to populate those nodes with properties, but those nodes would pre-exist with the externalIds you specified during edge creation.-Jason
@Peter Quinn ,Try adding id to the select clause. id is an auto generated, internal identifier. Yes, as you highlight, it’s good practice to specify an externalId. externalId must be unique per CDF resource type.-Jason
@Xiaofeng Wang Thank you for sharing this. I have reported. I will get back to you with any updates 😀-Jason
@Xiaofeng Wang,ViewId type does not have a property externalId, but does have a property ‘external_id’ 😀Are you trying to filter views based on external_id? If so, I’m a bit confused, because retrieving views by id explicitly will only retrieve one.What type is the ‘filters’ object you have above?-Jason
@Xiaofeng Wang,Ok, so you’re filtering instances, not views.Please find a working sample. The filter is a dictionary which is the same as the JSON payload which you can find in the API docs. from cognite.client import CogniteClientfrom cognite.client.data_classes.data_modeling.spaces import Space, SpaceListfrom cognite.client.data_classes.data_modeling import ViewList, Viewfrom cognite.client.data_classes.data_modeling import ContainerList, Containerfrom cognite.client.data_classes.data_modeling import DataModelList, DataModelfrom cognite.client.data_classes.data_modeling import NodeList, Node, EdgeList, Edgeclient: CogniteClient = .... # Get your client your way# The filter is a dictionaryemily_actors = { "and": [ { "equals": { "property": [ "node", "space" ], "value": "imdb" } }, { "prefix": {
@Xiaofeng Wang, Which project and which model are you wanting to query? I can work to build examples from that.-Jason
@Sangavi M ,Hello, I’d like to close this. The api is meant to enable you to query nodes which could be part of multiple views so the API response behaved as expected. In your example, if a node instance was part of X86 AND avocet space, you would get results. -Jason
@Xiaofeng Wang In the end, it was a bit easier to provide an imdb base exampleThis ‘and’ filter get’s all nodes with externalId prefixed with ‘a-emily’ AND in the space imdb. { "includeTyping": false, "instanceType": "node", "filter": { "and": [ { "equals": { "property": [ "node", "space" // [space, externalid, createdTime, lastUpdatedTime] ], "value": "imdb" } }, { "prefix": { "property": [ "node", "externalId" ], // Get me all emily actors "value": "a-emily" } } // { // "equals": { // "property": [ // "node", // "lastUpdatedTime" // [space, externalid, cr
@Xiaofeng Wang , unfortunately support was not able to retrieve the logs for your request. We’re working on a process to respond asap to these so we can provide better support.Jason
@Diana Chimnaz Johan client: CogniteClient = ...print(f"Max Workers: {client.config.max_workers}") #ensure you have workers >1 :)timeseries = client.time_series.list(limit=None) #not making use of the workerstimeseries = client.time_series.list(partitions=10, limit=None) #will leverage the workers and run in parallel-Jason
@Viswanadha Sai Akhil Pujyam , What’s helpful in these instances it to output the result of your transformation to a CDF Raw table. This way, you can query instances where startTime is greater than endTime. It’ll help debug your transformation. Looking at your transformation, it does not explicitly filter out instances where start is greater than end. Dealing with this can be tricky. Jason
@Niranjan Madhukar Karvekar This is not currently supported, but on the short term roadmap scheduled for October release.-Jason
@Stuart Donaldson,It’s in CDF roadmap for Unit support in Data Models. I’ll need @Everton Colling to provide an update on timeline of capabilities.JasonPS, I understand the current focus is unit support for time series data points.
@VamsiGrandhi Have you followed the links below? Downloading the collection and setting up environments will come in very handy 😀. Looking at your setup. You need to to change your scope parameter to be https://{{cluster}}.cognitedata.com/user_impersonationhttps://api-docs.cognite.com/20230101/#section/Postmanhttps://developer.cognite.com/dev/guides/postman/-Jason
@Dietmar Winkler Can you please try again. I believe the links are active again.https://indsl.docs.cognite.com/contribute.htmlRegards,Jason
@Dexter Nguyen Is there an potential race condition here? Would a thread try to upload datapoints before the timeseries is actually created? Given that you only observe this behavior during concurrent jobs, this seems likely. Is is possible to have 2 jobs types: First, create all the necessary timeseries objects. You can POST to create 1000 time series objects in a single request. Second, post to create the datapoints?-Jason
@Aditya Kotiyal ,ML models are routinely saved and fetched to/from CDF files in Functions to enable end to end use cases.. Whether CDF Functions are appropriate to ‘train’ and ‘retrain’ depends on the use case as CDF Functions have finite resource limits (memory, cpu and runtime). -Jasonfyi @Anvar Akhiiartdinov @Andris Piebalgs @Chad Hutchison Can you advise further?
@Neerajkumar Bhatewara @Gargi Bhosale, was Hakon able to answer your queries? Are there any outstanding questions?
@Dexter Nguyen Displaying custom metadata fields for Datasets in the UI is not possible today. Please share this feature request with @Aditya Kotiyal.-Jason
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.