CKANdocumentation,Release2.6.0a
• groups(listofdictionaries)–thegroupstowhichthedatasetbelongs(optional),eachgroup
dictionaryshouldhaveoneormoreofthefollowingkeyswhichidentifyanexistinggroup:
’id’(theidofthegroup,string),or’name’(thenameofthegroup,string),toseewhich
groupsexistcallgroup_list()
• owner_org g (string) – – the id d of the e dataset’s owning organization, , see
organization_list() or organization_list_for_user() for available
values(optional)
Returns thenewlycreateddataset(unless‘return_id_only’issettoTrueinthecontext,inwhich
casejustthedatasetidwillbereturned)
Returntype dictionary
ckan.logic.action.create.resource_create(context,data_dict)
Appendsanewresourcetoadatasetslistofresources.
Parameters
• package_id(string)–idofpackagethattheresourceshouldbeaddedto.
• url(string)–urlofresource
• revision_id(string)–(optional)
• description(string)–(optional)
• format(string)–(optional)
• hash(string)–(optional)
• name(string)–(optional)
• resource_type(string)–(optional)
• mimetype(string)–(optional)
• mimetype_inner(string)–(optional)
• cache_url(string)–(optional)
• size(int)–(optional)
• created(isodatestring)–(optional)
• last_modified(isodatestring)–(optional)
• cache_last_updated(isodatestring)–(optional)
• upload(FieldStorage(optional)needsmultipart/form-data)–(optional)
Returns thenewlycreatedresource
Returntype dictionary
ckan.logic.action.create.resource_view_create(context,data_dict)
Createsanewresourceview.
Parameters
• resource_id(string)–idoftheresource
• title(string)–thetitleoftheview
• description(string)–adescriptionoftheview(optional)
• view_type(string)–typeofview
• config(JSONstring)–optionsnecessarytorecreateaviewstate(optional)
4.9. ActionAPIreference
145
Convert pdf to powerpoint presentation - C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
how to convert pdf to powerpoint slides; converting pdf to ppt online
Convert pdf to powerpoint presentation - VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
create powerpoint from pdf; how to convert pdf to ppt using
CKANdocumentation,Release2.6.0a
Returns thenewlycreatedresourceview
Returntype dictionary
ckan.logic.action.create.resource_create_default_resource_views(context,
data_dict)
Createsthedefaultviews(ifnecessary)ontheprovidedresource
Thefunctionwillgetthepluginsforthedefaultviewsdefinedintheconfiguration,andifsomewerefoundthe
can_viewmethodofeachoneofthemwillbecalledtodetermineifaresourceviewshouldbecreated.Resource
viewsextensionsgettheresourcedictandtheparentdatasetdict.
Ifthelatterisnotprovided,package_showiscalledtogetit.
Bydefault onlyviewplugins thatdon’trequire the resourcedatatobe in the DataStore arecalled. . See
ckan.logic.action.create.package_create_default_resource_views.‘() for r details
onthecreate_datastore_viewsparameter.
Parameters
• resource(dict)–fullresourcedict
• package(dict)–fulldatasetdict(optional,ifnotprovidedpackage_show()willbe
called).
• create_datastore_views(bool)–whethertocreateviewsthatrelyondatabeingonthe
DataStore(optional,defaultstoFalse)
Returns alistofresourceviewscreated(emptyifnonewerecreated)
Returntype listofdictionaries
ckan.logic.action.create.package_create_default_resource_views(context,
data_dict)
Createsthedefaultviewsonallresourcesoftheprovideddataset
Bydefaultonlyviewpluginsthatdon’trequiretheresourcedatatobeintheDataStorearecalled. Passing
create_datastore_viewsasTruewillonlycreateviewsthatrequiredatatobeintheDataStore. Thefirstcase
happenswhenthefunctioniscalledfrompackage_createorpackage_update,thesecondwhenit’scalledfrom
theDataPusherwhendatawasuploadedtotheDataStore.
Parameters
• package(dict)–fulldatasetdict(ietheoneobtainedcallingpackage_show()).
• create_datastore_views(bool)–whethertocreateviewsthatrelyondatabeingonthe
DataStore(optional,defaultstoFalse)
Returns alistofresourceviewscreated(emptyifnonewerecreated)
Returntype listofdictionaries
ckan.logic.action.create.package_relationship_create(context,data_dict)
Createarelationshipbetweentwodatasets(packages).
Youmustbeauthorizedtoeditboththesubjectandtheobjectdatasets.
Parameters
• subject(string)–theidornameofthedatasetthatisthesubjectoftherelationship
• object–theidornameofthedatasetthatistheobjectoftherelationship
• type(string)–thetypeoftherelationship,oneof’depends_on’,’dependency_of’,
’derives_from’, ’has_derivation’, , ’links_to’, , ’linked_from’,
’child_of’or’parent_of’
146
Chapter4. APIguide
VB.NET PowerPoint: Use PowerPoint SDK to Create, Load and Save PPT
About This SDK. Specifically speaking, this VB.NET PowerPoint presentation document control of RasterEdge .NET Imaging SDK has been developed and provided to
convert pdf slides to powerpoint online; pdf to ppt
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
you can choose to show your PPT presentation in inverted clip art or screenshot to PowerPoint document slide & profession imaging controls, PDF document, image
pdf to powerpoint slide; converter pdf to powerpoint
CKANdocumentation,Release2.6.0a
• comment(string)–acommentabouttherelationship(optional)
Returns thenewlycreatedpackagerelationship
Returntype dictionary
ckan.logic.action.create.member_create(context,data_dict=None)
Makeanobject(e.g.auser,datasetorgroup)amemberofagroup.
Iftheobjectisalreadyamemberofthegroupthenthecapacityofthemembershipwillbeupdated.
Youmustbeauthorizedtoeditthegroup.
Parameters
• id(string)–theidornameofthegrouptoaddtheobjectto
• object(string)–theidornameoftheobjecttoadd
• object_type(string)–thetypeoftheobjectbeingadded,e.g.’package’or’user’
• capacity(string)–thecapacityofthemembership
Returns thenewlycreated(orupdated)membership
Returntype dictionary
ckan.logic.action.create.group_create(context,data_dict)
Createanewgroup.
Youmustbeauthorizedtocreategroups.
Pluginsmaychangetheparametersofthisfunctiondependingonthevalueofthetypeparameter,seethe
IGroupFormplugininterface.
Parameters
• name(string)–thenameofthegroup,astringbetween2and100characterslong,contain-
ingonlylowercasealphanumericcharacters,-and_
• id(string)–theidofthegroup(optional)
• title(string)–thetitleofthegroup(optional)
• description(string)–thedescriptionofthegroup(optional)
• image_url(string)–theURLtoanimagetobedisplayedonthegroup’spage(optional)
• type(string)–thetypeofthegroup(optional),IGroupFormpluginsassociatethemselves
withdifferentgrouptypesandprovidecustom grouphandlingbehaviourforthesetypes
Cannotbe‘organization’
• state(string)–thecurrentstateofthegroup,e.g.’active’or’deleted’,onlyactive
groupsshowupinsearchresultsandotherlistsofgroups,thisparameterwillbeignoredif
youarenotauthorizedtochangethestateofthegroup(optional,default:’active’)
• approval_status(string)–(optional)
• extras(listofdatasetextradictionaries)–thegroup’sextras(optional),extrasarearbitrary
(key:value)metadataitemsthatcanbeaddedtogroups,eachextradictionaryshouldhave
keys’key’(astring),’value’(astring),andoptionally’deleted’
• packages(listofdictionaries)–thedatasets(packages)thatbelongtothegroup,alistof
dictionarieseachwithkeys’name’(string,theidornameofthedataset)andoptionally
’title’(string,thetitleofthedataset)
4.9. ActionAPIreference
147
VB.NET PowerPoint: Merge and Split PowerPoint Document(s) with PPT
individual slide is with the virtual presentation of PPTXPage in VB.NET to finish PowerPoint document splitting If you want to see more PDF processing functions
how to add pdf to powerpoint presentation; images from pdf to powerpoint
C# Create PDF from OpenOffice to convert odt, odp files to PDF in
using RasterEdge.XDoc.Excel; using RasterEdge.XDoc.PowerPoint; How to Use C#.NET Demo Code to Convert ODT to PDF in C#.NET Project.
conversion of pdf to ppt online; how to change pdf to powerpoint slides
CKANdocumentation,Release2.6.0a
• groups(listofdictionaries)–thegroupsthatbelongtothegroup,alistofdictionaries
eachwithkey’name’(string,theidornameofthegroup)andoptionally’capacity’
(string,thecapacityinwhichthegroupisamemberofthegroup)
• users(listofdictionaries)–theusersthatbelongtothegroup,alistofdictionarieseach
withkey’name’(string,theidornameoftheuser)andoptionally’capacity’(string,
thecapacityinwhichtheuserisamemberofthegroup)
Returns thenewlycreatedgroup(unless‘return_id_only’issettoTrueinthecontext,inwhichcase
justthegroupidwillbereturned)
Returntype dictionary
ckan.logic.action.create.organization_create(context,data_dict)
Createaneworganization.
Youmustbeauthorizedtocreateorganizations.
Pluginsmaychangetheparametersofthisfunctiondependingonthevalueofthetypeparameter,seethe
IGroupFormplugininterface.
Parameters
• name(string)–thenameoftheorganization,astringbetween2and100characterslong,
containingonlylowercasealphanumericcharacters,-and_
• id(string)–theidoftheorganization(optional)
• title(string)–thetitleoftheorganization(optional)
• description(string)–thedescriptionoftheorganization(optional)
• image_url(string)–theURLtoanimagetobedisplayedontheorganization’spage(op-
tional)
• state(string)–thecurrentstateoftheorganization,e.g.’active’or’deleted’,only
activeorganizationsshowupinsearchresultsandotherlistsoforganizations,thisparameter
willbeignoredifyouarenotauthorizedtochangethestateoftheorganization(optional,
default:’active’)
• approval_status(string)–(optional)
• extras(listofdatasetextradictionaries)–theorganization’sextras(optional),extrasarear-
bitrary(key:value)metadataitemsthatcanbeaddedtoorganizations,eachextradictionary
shouldhavekeys’key’(astring),’value’(astring),andoptionally’deleted’
• packages(listofdictionaries)–thedatasets(packages)thatbelongtotheorganization,alist
ofdictionarieseachwithkeys’name’(string,theidornameofthedataset)andoptionally
’title’(string,thetitleofthedataset)
• users(listofdictionaries)–theusersthatbelongtotheorganization,alistofdictionaries
eachwithkey’name’(string,theidornameoftheuser)andoptionally’capacity’
(string,thecapacityinwhichtheuserisamemberoftheorganization)
Returns thenewlycreatedorganization(unless‘return_id_only’issettoTrueinthecontext,in
whichcasejusttheorganizationidwillbereturned)
Returntype dictionary
ckan.logic.action.create.rating_create(context,data_dict)
Rateadataset(package).
YoumustprovideyourAPIkeyintheAuthorizationheader.
Parameters
148
Chapter4. APIguide
C# PDF Text Extract Library: extract text content from PDF file in
But sometimes, we need to extract or fetch text content from source PDF document file for word processing, presentation and desktop publishing applications.
convert pdf to ppt online; how to convert pdf to ppt for
VB.NET PowerPoint: VB Codes to Create Linear and 2D Barcodes on
2d barcodes of different types on PowerPoint presentation when you Here is a market-leading PowerPoint barcode add 2d barcodes QR Code, Data Matrix, PDF-417,
how to convert pdf to powerpoint on; changing pdf to powerpoint file
CKANdocumentation,Release2.6.0a
• package(string)–thenameoridofthedatasettorate
• rating(int)–theratingtogivetothedataset,anintegerbetween1and5
Returns adictionarywithtwokeys:’rating g average’(theaverageratingofthedatasetyou
rated)and’rating count’(thenumberoftimesthedatasethasbeenrated)
Returntype dictionary
ckan.logic.action.create.user_create(context,data_dict)
Createanewuser.
Youmustbeauthorizedtocreateusers.
Parameters
• name(string)–thenameofthenewuser,astringbetween2and100charactersinlength,
containingonlylowercasealphanumericcharacters,-and_
• email(string)–theemailaddressforthenewuser
• password(string)–thepasswordofthenewuser,astringofatleast4characters
• id(string)–theidofthenewuser(optional)
• fullname(string)–thefullnameofthenewuser(optional)
• about(string)–adescriptionofthenewuser(optional)
• openid(string)–(optional)
Returns thenewlycreateduser
Returntype dictionary
ckan.logic.action.create.user_invite(context,data_dict)
Inviteanewuser.
Youmustbeauthorizedtocreategroupmembers.
Parameters
• email(string)–theemailoftheusertobeinvitedtothegroup
• group_id(string)–theidornameofthegroup
• role(string)–roleoftheuserinthegroup.Oneofmember,editor,oradmin
Returns thenewlycreateduser
Returntype dictionary
ckan.logic.action.create.vocabulary_create(context,data_dict)
Createanewtagvocabulary.
Youmustbeasysadmintocreatevocabularies.
Parameters
• name(string)–thenameofthenewvocabulary,e.g.’Genre’
• tags(listoftagdictionaries)–thenewtagstoaddtothenewvocabulary,fortheformatof
tagdictionariesseetag_create()
Returns thenewly-createdvocabulary
Returntype dictionary
4.9. ActionAPIreference
149
VB.NET Create PDF from OpenOffice to convert odt, odp files to PDF
using RasterEdge.XDoc.Word; using RasterEdge.XDoc.Excel; using RasterEdge.XDoc.PowerPoint; How to VB.NET: Convert ODT to PDF.
converting pdf to powerpoint online; how to add pdf to powerpoint
VB.NET PowerPoint: Add Image to PowerPoint Document Slide/Page
image or clip art to your PowerPoint presentation in VB insert or delete any certain PowerPoint slide without & profession imaging controls, PDF document, tiff
how to change pdf file to powerpoint; how to convert pdf into powerpoint slides
CKANdocumentation,Release2.6.0a
ckan.logic.action.create.activity_create(context,activity_dict,**kw)
Createanewactivitystreamactivity.
Youmustbeasysadmintocreatenewactivities.
Parameters
• user_id(string)–thenameoridoftheuserwhocarriedouttheactivity,e.g.’seanh’
• object_id–thenameoridoftheobjectoftheactivity,e.g.’my_dataset’
• activity_type(string)–thetypeoftheactivity, , thismustbeanactivitytypethatCKAN
knowshowtorender,e.g.’new package’,’changed user’,’deleted group’
etc.
• data(dictionary)–anyadditionaldataabouttheactivity
Returns thenewlycreatedactivity
Returntype dictionary
ckan.logic.action.create.tag_create(context,data_dict)
Createanewvocabularytag.
Youmustbeasysadmintocreatevocabularytags.
Youcanonlyusethisfunctiontocreatetagsthatbelongtoavocabulary,nottocreatefreetags.(Tocreateanew
freetagsimplyaddthetagtoapackage,e.g.usingthepackage_update()function.)
Parameters
• name(string)–thenameforthenewtag,astringbetween2and100characterslongcon-
tainingonlyalphanumericcharactersand-,_and.,e.g.’Jazz’
• vocabulary_id(string)–theidofthevocabularythatthenewtagshouldbeaddedto,e.g.
theidofvocabulary’Genre’
Returns thenewly-createdtag
Returntype dictionary
ckan.logic.action.create.follow_user(context,data_dict)
Startfollowinganotheruser.
YoumustprovideyourAPIkeyintheAuthorizationheader.
Parameters id(string)–theidornameoftheusertofollow,e.g.’joeuser’
Returns arepresentationofthe‘follower’relationshipbetweenyourselfandtheotheruser
Returntype dictionary
ckan.logic.action.create.follow_dataset(context,data_dict)
Startfollowingadataset.
YoumustprovideyourAPIkeyintheAuthorizationheader.
Parameters id(string)–theidornameofthedatasettofollow,e.g.’warandpeace’
Returns arepresentationofthe‘follower’relationshipbetweenyourselfandthedataset
Returntype dictionary
ckan.logic.action.create.group_member_create(context,data_dict)
Makeauseramemberofagroup.
Youmustbeauthorizedtoeditthegroup.
150
Chapter4. APIguide
CKANdocumentation,Release2.6.0a
Parameters
• id(string)–theidornameofthegroup
• username(string)–nameoridoftheusertobemadememberofthegroup
• role(string)–roleoftheuserinthegroup.Oneofmember,editor,oradmin
Returns thenewlycreated(orupdated)membership
Returntype dictionary
ckan.logic.action.create.organization_member_create(context,data_dict)
Makeauseramemberofanorganization.
Youmustbeauthorizedtoedittheorganization.
Parameters
• id(string)–theidornameoftheorganization
• username(string)–nameoridoftheusertobemadememberoftheorganization
• role(string)–roleoftheuserintheorganization.Oneofmember,editor,oradmin
Returns thenewlycreated(orupdated)membership
Returntype dictionary
ckan.logic.action.create.follow_group(context,data_dict)
Startfollowingagroup.
YoumustprovideyourAPIkeyintheAuthorizationheader.
Parameters id(string)–theidornameofthegrouptofollow,e.g.’roger’
Returns arepresentationofthe‘follower’relationshipbetweenyourselfandthegroup
Returntype dictionary
4.9.3 ckan.logic.action.update
APIfunctionsforupdatingexistingdatainCKAN.
ckan.logic.action.update.resource_update(context,data_dict)
Updatearesource.
Toupdatearesourceyoumustbeauthorizedtoupdatethedatasetthattheresourcebelongsto.
Forfurtherparametersseeresource_create().
Parameters id(string)–theidoftheresourcetoupdate
Returns theupdatedresource
Returntype string
ckan.logic.action.update.resource_view_update(context,data_dict)
Updatearesourceview.
Toupdatearesource_viewyoumustbeauthorizedtoupdatetheresourcethattheresource_viewbelongsto.
Forfurtherparametersseeresource_view_create().
Parameters id(string)–theidoftheresource_viewtoupdate
Returns theupdatedresource_view
4.9. ActionAPIreference
151
CKANdocumentation,Release2.6.0a
Returntype string
ckan.logic.action.update.resource_view_reorder(context,data_dict)
Reorderresourceviews.
Parameters
• id(string)–theidoftheresource
• order(listofstrings)–thelistofidoftheresourcetoupdatetheorderoftheviews
Returns theupdatedorderoftheview
Returntype dictionary
ckan.logic.action.update.package_update(context,data_dict)
Updateadataset(package).
Youmustbeauthorizedtoeditthedatasetandthegroupsthatitbelongsto.
Itisrecommendedtocallckan.logic.action.get.package_show(),makethedesiredchangesto
theresult,andthencallpackage_update()withit.
Pluginsmaychangetheparametersofthisfunctiondependingonthevalueofthedataset’stypeattribute,see
theIDatasetFormplugininterface.
Forfurtherparametersseepackage_create().
Parameters id(string)–thenameoridofthedatasettoupdate
Returns theupdateddataset(if’return_package_dict’isTrueinthecontext,whichisthe
default.Otherwisereturnsjustthedatasetid)
Returntype dictionary
ckan.logic.action.update.package_resource_reorder(context,data_dict)
Reorderresourcesagainstdatasets. Ifonlypartialresourceidsaresuppliedthentheseareassumedtobefirst
andtheotherresourceswillstayintheiroriginalorder
Parameters
• id(string)–theidornameofthepackagetoupdate
• order–alistofresourceidsintheorderneeded
ckan.logic.action.update.package_relationship_update(context,data_dict)
Updatearelationshipbetweentwodatasets(packages).
Youmustbeauthorizedtoeditboththesubjectandtheobjectdatasets.
Parameters
• id(string)–theidofthepackagerelationshiptoupdate
• subject(string)–thenameoridofthedatasetthatisthesubjectoftherelationship(op-
tional)
• object–thenameoridofthedatasetthatistheobjectoftherelationship(optional)
• type(string)–thetypeoftherelationship,oneof’depends_on’,’dependency_of’,
’derives_from’, ’has_derivation’, , ’links_to’, , ’linked_from’,
’child_of’or’parent_of’(optional)
• comment(string)–acommentabouttherelationship(optional)
Returns theupdatedrelationship
Returntype dictionary
152
Chapter4. APIguide
CKANdocumentation,Release2.6.0a
ckan.logic.action.update.group_update(context,data_dict)
Updateagroup.
Youmustbeauthorizedtoeditthegroup.
Pluginsmaychangetheparametersofthisfunctiondependingonthevalueofthegroup’stypeattribute,see
theIGroupFormplugininterface.
Forfurtherparametersseegroup_create().
Parameters id(string)–thenameoridofthegrouptoupdate
Returns theupdatedgroup
Returntype dictionary
ckan.logic.action.update.organization_update(context,data_dict)
Updateaorganization.
Youmustbeauthorizedtoedittheorganization.
Forfurtherparametersseeorganization_create().
Parameters
• id(string)–thenameoridoftheorganizationtoupdate
• packages–ignored.usepackage_owner_org_update()tochangepackageowner-
ship
Returns theupdatedorganization
Returntype dictionary
ckan.logic.action.update.user_update(context,data_dict)
Updateauseraccount.
Normaluserscanonlyupdatetheirownuseraccounts.Sysadminscanupdateanyuseraccount.
Forfurtherparametersseeuser_create().
Parameters id(string)–thenameoridoftheusertoupdate
Returns theupdateduseraccount
Returntype dictionary
ckan.logic.action.update.user_generate_apikey(context,data_dict)
Cycleauser’sAPIkey
Parameters id(string)–thenameoridoftheuserwhosekeyneedstobeupdated
Returns theupdateduser
Returntype dictionary
ckan.logic.action.update.task_status_update(context,data_dict)
Updateataskstatus.
Parameters
• id(string)–theidofthetaskstatustoupdate
• entity_id(string)–
• entity_type(string)–
• task_type(string)–
4.9. ActionAPIreference
153
CKANdocumentation,Release2.6.0a
• key(string)–
• value–(optional)
• state–(optional)
• last_updated–(optional)
• error–(optional)
Returns theupdatedtaskstatus
Returntype dictionary
ckan.logic.action.update.task_status_update_many(context,data_dict)
Updatemanytaskstatusesatonce.
Parameters data(listofdictionaries)–thetask_statusdictionariestoupdate,fortheformatoftask
statusdictionariesseetask_status_update()
Returns theupdatedtaskstatuses
Returntype listofdictionaries
ckan.logic.action.update.term_translation_update(context,data_dict)
Createorupdateatermtranslation.
Youmustbeasysadmintocreateorupdatetermtranslations.
Parameters
• term (string) –the term m tobe translated, , intheoriginal language, e.g. . ’romantic
novel’
• term_translation(string)–thetranslationoftheterm,e.g.’Liebesroman’
• lang_code(string)–thelanguagecodeofthetranslation,e.g.’de’
Returns thenewlycreatedorupdatedtermtranslation
Returntype dictionary
ckan.logic.action.update.term_translation_update_many(context,data_dict)
Createorupdatemanytermtranslationsatonce.
Parameters data(listofdictionaries)–thetermtranslationdictionariestocreateorupdate,forthe
formatoftermtranslationdictionariesseeterm_translation_update()
Returns adictionarywithkey’success’whosevalueisastringstatinghowmanytermtransla-
tionswereupdated
Returntype string
ckan.logic.action.update.vocabulary_update(context,data_dict)
Updateatagvocabulary.
Youmustbeasysadmintoupdatevocabularies.
Forfurtherparametersseevocabulary_create().
Parameters id(string)–theidofthevocabularytoupdate
Returns theupdatedvocabulary
Returntype dictionary
154
Chapter4. APIguide
Documents you may be interested
Documents you may be interested