Example Connector for Taxonomy Space configurations

The examples provided illustrate some different configurations of the Connector for Taxonomy Space.

Configuration file with default values

The connector comes with the following sample configuration file with the recommended default values for numerous settings:

{
  "configuration": {
    "PoolPartyConnector": {
      "configuration": {
        "baseUrl": "",
        "userName": "",
        "password": "",
        "projectId": "",
        "conceptSchemeUri": "",
        "useUserLanguage": true,
        "cacheLifetimeSeconds": 300,
        "extractConcepts": {
          "minimumScoreThreshold": 0.0,
          "maximumConceptsPerField": 0
        },
        "connectionPolicies": {
          "timeoutMilliseconds": 2000,
          "longTimeoutSeconds": 60,
          "responseTimeWarningMilliseconds": 2000,
          "circuitBreaker": {
            "minimumThroughput": 5,
            "failureThresholdPercentage": 50,
            "samplingDurationSeconds": 15,
            "breakDurationSeconds": 30
          }
        },
        "customProperties": []
      },
      "namespaces": {
        "pparty": {
          "displayName": "PoolParty",
          "stubCategories": [ "" ],
          "useFeature": "Taxonomy"
        }
      }
    }
  },
  "staging": {
    "isEnabled": true
  },
  "live": {
    "isEnabled": true
  }
}

Example file for a single taxonomy

The following sample code illustrates the configuration file for a single taxonomy:

{ 
"configuration": { 
  "PoolPartyConnector": { 
    "configuration": { 
      "baseUrl": "https://rws.poolparty.biz/", 
      "userName": "TridionUser", 
      "password": "FakeP@ssw0rd!", 
      "projectId": "1E26021B-1C2E-0001-A0C3-17E0FDDD13B6", 
      "useUserLanguage": true, 
      "cacheLifetimeSeconds": 300, 
      "customProperties": []
      "connectionPolicies": { 
        "timeoutMilliseconds": 1000, 
        "longTimeoutSeconds": 60, 
        "responseTimeWarningMilliseconds": 1000, 
        "circuitBreaker": { 
           "minimumThroughput": 5, 
           "failureThresholdPercentage": 50, 
           "samplingDurationSeconds": 15, 
           "breakDurationSeconds": 30 
        } 
      }, 
      "namespaces": { 
        "namespace1": { 
		        "configuration" : {
		          "conceptSchemeUri": "http://e-learning.poolparty.biz/cocktails/8d052dfc"
	      	  }
        }  
      } 
    } 
  } 
}

Notice that the namespaces section includes a single namespace called "namespace1" and it defines the concept scheme from the Taxonomy Space project.

Example file for multiple taxonomies

The following sample code illustrates a configuration file that defines two taxonomies:

{
  "configuration": {
    "PoolPartyConnector": {
      "configuration": {
        "baseUrl": "https://rws.poolparty.biz/",
        "userName": "superadmin",
        "password": "FakeP@ssw0rd!",
        "projectId": "1018dab6-d5aa-4323-8032-98ca303558bd",
        "useUserLanguage": true,
        "cacheLifetimeSeconds": 300,
        "extractConcepts": {
          "minimumScoreThreshold": 50.0,
          "maximumConceptsPerField": 5
        },
        "connectionPolicies": {
          "timeoutMilliseconds": 2000,
          "longTimeoutSeconds": 60,
          "responseTimeWarningMilliseconds": 2000,
          "circuitBreaker": {
            "minimumThroughput": 5,
            "failureThresholdPercentage": 50,
            "samplingDurationSeconds": 15,
            "breakDurationSeconds": 30
          }
        },
        "customProperties": []
      },
      "namespaces": {
        "namespace1": {
          "configuration" : {
		          "conceptSchemeUri": "http://eurovoc.europa.eu/100142"
		        }

        },
		      "namespace2": {
		        "configuration" : {
		          "conceptSchemeUri": "http://eurovoc.europa.eu/100143"
	      	  }
        }
      }
    }
  },
  "staging": {
    "isEnabled": true
  },
  "live": {
    "isEnabled": true
  }
}

In this example, the namespaces section now includes two namespace definitions, one for each of the two taxonomies. As before, each namespace section identifies a concept scheme in Taxonomy Space.