Wiki

Clone wiki

BibSonomy / documentation / api / methods / CreateConcept

Create concept for a user

Method POST
URL https://www.bibsonomy.org/api/users/[username]/concepts/[conceptname]

Status codes

  • 201 created

  • 400 bad request

  • 401 Unauthorized
  • 403 Forbidden

  • 500 Internal Server Error

Example

Request:

curl -XPOST --user username:apikey "https://www.bibsonomy.org/api/users/username/concepts/newConcept" --header "Content-Type:application/xml" -d \
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy>
  <tag name="newConcept"> 
    <subTags> 
      <tag name="subTag"/>
    </subTags>
  </tag>
</bibsonomy>'

Response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy stat="ok">
    <resourcehash>newConcept</resourcehash>
</bibsonomy>

XML Schema

<!--
  a tag
-->
<xsd:complexType name="TagType">
  <xsd:sequence>
    <xsd:element maxOccurs="unbounded" minOccurs="0" name="subTags" type="TagsType" />
    <xsd:element maxOccurs="unbounded" minOccurs="0" name="superTags" type="TagsType" />
  </xsd:sequence>
  <xsd:attribute name="name" type="xsd:string" use="required" />
  <xsd:attribute name="globalcount" type="positiveIntegerIncludingZero" />
  <xsd:attribute name="usercount" type="positiveIntegerIncludingZero" />
  <xsd:attribute name="score" type="probabilityValue" />
  <xsd:attribute name="confidence" type="probabilityValue" />
  <!-- link to details page -->
  <xsd:attribute name="href" type="xsd:anyURI" />       
</xsd:complexType>

Updated