Function Repository Resource:

PublisherResources

Source Notebook

Retrieve data on the published resource objects for a publisher

Contributed by: Bob Sandheinrich

ResourceFunction["PublisherResources"][publisherid]

retrieves a Dataset of ResourceObject information for resources published by the given publisherid.

Details and Options

ResourceFunction["PublisherResources"][] gives ResourceFunction["PublisherResources"][$PublisherID].
ResourceFunction["PublisherResources"] looks only on the current $ResourceSystemBase.
ResourceFunction["PublisherResources"] returns public information and can be used by everyone, not just the publishers.
ResourceFunction["PublisherResources"] requires Wolfram Language 13.0 or higher.
ResourceFunction["PublisherResources"] accepts the option MaxItems and passes it to Dataset to control the displayed output size. It has the same default and accepted values as Dataset.

Examples

Basic Examples (1) 

Get resource information for a given publisher ID:

In[1]:=
ResourceFunction[
 "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["MarkGreenberg"]
Out[1]=

Scope (1) 

Get resource information for $PublisherID:

In[2]:=
ResourceFunction[
 "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][MaxItems -> 5]
Out[2]=

Options (1) 

Control the size of the dataset output using MaxItems:

In[3]:=
ResourceFunction[
 "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][MaxItems -> 2]
Out[3]=
In[4]:=
ResourceFunction[
 "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"][MaxItems -> 20]
Out[4]=

Applications (1) 

Create a formatted and linked listing of a publisher's resources:

In[5]:=
Column[Normal@
  ResourceFunction[
    "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["LukasLang"][All, Row[{Hyperlink[#Name, #URL], #Description}, ": "] &]]
Out[5]=

Possible Issues (2) 

PublisherResources requires Wolfram Language 13. In versions less than 13, PublisherResources returns a Failure:

In[6]:=
$VersionNumber -> ResourceFunction[
  "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["Bob"]
Out[6]=

Using Version 13 gives a better result:

In[7]:=
$VersionNumber -> ResourceFunction[
  "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["Bob"]
Out[7]=

The "Wolfram" publisher ID has published more than a thousand resources, so this function can take several seconds:

In[8]:=
AbsoluteTiming[
 Length[wolframdata = ResourceFunction[
    "PublisherResources", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["Wolfram"]]]
Out[8]=
In[9]:=
wolframdata[Counts, "ResourceType"]
Out[9]=

Requirements

Wolfram Language 12.3 (May 2021) or above

Version History

  • 1.1.0 – 29 March 2023
  • 1.0.0 – 16 November 2021

Related Resources

Author Notes

1.1.0: Function was broken by server-side change. This fixes it, and also adds MaxItems option

License Information