-
-
Notifications
You must be signed in to change notification settings - Fork 124
Data edit api #1044
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
Merged
Merged
Data edit api #1044
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <oml:data_edit xmlns:oml="http://openml.org/openml"> | ||
| <oml:id><?php echo $dataset->did; ?></oml:id> | ||
| </oml:data_edit> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| <!-- Schema for dataset edit parameters. --> | ||
|
|
||
| <xs:schema targetNamespace="http://openml.org/openml" | ||
| xmlns:oml="http://openml.org/openml" | ||
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
| elementFormDefault="qualified"> | ||
| <xs:element name="data_edit_parameters" type="oml:data_edit_parameters"/> | ||
| <xs:complexType name="data_edit_parameters"> | ||
| <xs:sequence> | ||
| <!-- dublin core --> | ||
| <xs:element name="description" minOccurs="0" type="oml:basic_latin16384"/> <!-- Description of the dataset, given by the user who uploaded it. --> | ||
| <xs:element name="creator" minOccurs="0" maxOccurs="unbounded" type="oml:basic_latin128"/> <!-- The person who created the dataset --> | ||
| <xs:element name="contributor" minOccurs="0" maxOccurs="unbounded" type="oml:basic_latin128"/> <!-- People who contributed to the current version of the datadat (e.g. reformatting) --> | ||
| <xs:element name="collection_date" minOccurs="0" type="oml:basic_latin128"/> <!-- The date the data was originally collected, given by the uploader --> | ||
| <xs:element name="language" minOccurs="0" type="oml:casual_string128"/> <!-- Language in which the data is represented. Starts with 1 upper case letter, rest lower case, e.g. 'English' --> | ||
| <!-- other --> | ||
| <xs:element name="citation" minOccurs="0" type="oml:basic_latin1024"/> <!-- Reference(s) that should be cited when building on this data --> | ||
| <xs:element name="original_data_url" minOccurs="0" type="xs:anyURI"/> <!-- For derived data, the url to the original dataset. This can be an OpenML dataset, e.g. 'http://openml.org/d/1'. --> | ||
| <xs:element name="paper_url" minOccurs="0" type="xs:anyURI"/> <!-- Link to a paper describing the dataset --> | ||
| </xs:sequence> | ||
| </xs:complexType> | ||
|
|
||
| <xs:simpleType name="system_string64"> <!-- Subset on xs:string. Highly restricted form of string. URL-friendly --> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="([a-zA-Z0-9_\-\.])+"/> | ||
| <xs:maxLength value="64" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="casual_string1024"> <!-- Subset on xs:string. Highly restricted form of string. URL-friendly --> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="([a-zA-Z0-9_\-\.\(\),])+"/> | ||
| <xs:maxLength value="1024" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="casual_string128"> <!-- Subset on xs:string. Highly restricted form of string. URL-friendly --> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="([a-zA-Z0-9_\-\.\(\),])+"/> | ||
| <xs:maxLength value="128" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="casual_string64"> <!-- Subset on xs:string. Highly restricted form of string. URL-friendly --> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="([a-zA-Z0-9_\-\.\(\),])+"/> | ||
| <xs:maxLength value="64" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="basic_latin64"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="\p{IsBasicLatin}*"/> | ||
| <xs:maxLength value="64" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="basic_latin128"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="\p{IsBasicLatin}*"/> | ||
| <xs:maxLength value="128" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="basic_latin1024"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="\p{IsBasicLatin}*"/> | ||
| <xs:maxLength value="1024" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="basic_latin16384"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="\p{IsBasicLatin}*"/> | ||
| <xs:maxLength value="16384" /> | ||
| <xs:minLength value="1" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| <xs:simpleType name="access_policy"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:enumeration value="circles" /> | ||
| <xs:enumeration value="public" /> | ||
| <xs:enumeration value="private" /> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
| </xs:schema> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, it would be great if we would solve this with a XML (and new XSD) as well.