- ๐ Hi, Iโm @SvenPVoigt
- ๐ Iโm interested in ...
- ๐ฑ Iโm currently learning ...
- ๐๏ธ Iโm looking to collaborate on ...
- ๐ซ How to reach me ...
svenpvoigt / cordrapy-rdf Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
dataset.add('Material', properties = {})
throws this error
HTTPError Traceback (most recent call last)
/var/folders/13/bq_w7k_x1yxcrn8djl3fkqlr0000gn/T/ipykernel_16162/3736735015.py in
----> 1 dataset.add('Material', properties = {})
2 dataset.cordraObjects
~/Desktop/TEst/te/lib/python3.9/site-packages/cordra/dataset.py in add(self, name, properties, payloads)
23 properties.update({"@id": str(uuid4())})
24 obj = self.classes[name](properties=properties, payloads=payloads)
---> 25 r = self.client.create(obj.properties, obj.properties["@type"], payloads=obj.payloads)
26 obj.properties["@id"] = r["@id"]
27 self.cordraObjects.append(obj)
~/Desktop/TEst/te/lib/python3.9/site-packages/cordra/cordraClient.py in create(self, obj, obj_type, **kwargs)
107 params.update(kwargs)
108
--> 109 return create_object(obj_json=obj, obj_type=obj_type, **params)
110
111
~/Desktop/TEst/te/lib/python3.9/site-packages/cordra/cordraMethods.py in create_object(host, obj_json, obj_type, handle, suffix, dryRun, username, password, token, verify, full, payloads, acls, **kwargs)
109 if acls:
110 params['full'] = True
--> 111 obj_r = check_response(
112 requests.post(
113 endpoint_url(host, objects_endpoint),
~/Desktop/TEst/te/lib/python3.9/site-packages/cordra/cordraMethods.py in check_response(response)
24 except BaseException:
25 print(response.text)
---> 26 response.raise_for_status()
27 return None
28 else:
~/Desktop/TEst/te/lib/python3.9/site-packages/requests/models.py in raise_for_status(self)
951
952 if http_error_msg:
--> 953 raise HTTPError(http_error_msg, response=self)
954
955 def close(self):
HTTPError: 400 Client Error: Bad Request for url: https://dev.materialhub.org/objects/?type=CreativeWork&type=mat%3AMaterial
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.