Skip to content

Instantly share code, notes, and snippets.

@gubi
Created May 20, 2014 07:59
Show Gist options
  • Save gubi/d727defc5ff49b625277 to your computer and use it in GitHub Desktop.
Save gubi/d727defc5ff49b625277 to your computer and use it in GitHub Desktop.
First PGRDG search
{
"status": {
"state": "ok"
},
"paging": {
"affected": 9,
"actual": 9,
"skipped": 0,
"limit": 50
},
"request": {
"op": "matchTagByLabel",
"lang": "en",
"log-request": true,
"limit": 50,
"skipped": 0,
"pattern": "count",
"operator": [
"$CX",
"$i"
]
},
"results": {
"_terms": {
":id-local": {
"1": "",
"2": "id-local",
"30": "Local identifier",
"31": "A local identifier is used to uniquely identify objects within a namespace.",
"37": 1
},
":type:discrete": {
"1": ":type",
"2": "discrete",
"30": "Discrete",
"31": "This kind indicates that the property is one which may take an indefinite number of values, which differentiates it from a categorical property, and whose values are not continuous, which differentiates it from a quantitative property.",
"37": 86,
"39": 1
},
":type:string": {
"1": ":type",
"2": "string",
"30": "String",
"31": "A string data type indicates that the referred property may hold UNICODE characters, this type does not include binary data.",
"37": 92,
"39": 1
},
":namespace": {
"1": "",
"2": "namespace",
"30": "Namespace",
"31": "The namespace is used to disambiguate homonym identifiers.",
"37": 1
},
":type:ref:term": {
"1": ":type:ref",
"2": "term",
"30": "Term reference",
"31": "A term reference is a string that must correspond to the native identifier of a Term object.",
"37": 4,
"39": 1
},
":definition": {
"1": "",
"2": "definition",
"30": "Definition",
"31": "A definition provides detailed information about an object without reference to a specific context.",
"37": 1
},
":type:language-strings": {
"1": ":type",
"2": "language-strings",
"30": "Language strings",
"31": "This data type defines a list of strings expressed in different languages. The list elements are composed by two key/value pairs. The first pair has the tag corresponding to the :language persistent identifier as its key and the value represents the language code. The second pair has the tag corresponding to the :text persistent identifier as its key and the value represents the text expressed in the language defined in the first pair. No two elements may share the same language and only one element may omit the language pair.",
"37": 4,
"39": 1
},
":label": {
"1": "",
"2": "label",
"30": "Label",
"31": "This represents a label or short description.",
"37": 1
},
":type:categorical": {
"1": ":type",
"2": "categorical",
"30": "Categorical",
"31": "This kind indicates that the property can take on one or more of a limited, and usually fixed, number of possible values. In general, properties which take their values from an enumerated set of choices are of this kind.",
"37": 64,
"39": 1
},
":type:enum-set": {
"1": ":type",
"2": "enum-set",
"30": "Enumerated set",
"31": "An enumerated set data type indicates that the referred property may only hold a list of term reference, that is, an array of term object global identifiers. All the elements of this list must be unique.",
"37": 8,
"39": 1
},
":type:kind": {
"1": ":type",
"2": "kind",
"30": "Data kind",
"31": "This represents the data attributes of a property, it describes the structure and cardinality of a data property.",
"37": 1,
"39": 1
},
":type:data": {
"1": ":type",
"2": "data",
"30": "Data type",
"31": "This represents the data type, of a property, it describes the internal representation of a value.",
"37": 1,
"39": 1
},
":type:enum": {
"1": ":type",
"2": "enum",
"30": "Enumeration",
"31": "An enumerated data type indicates that the referred property may only hold a term reference, that is, the global identifier of a term object. Enumerated values are by default strings and must refer to a term.",
"37": 9,
"39": 1
},
":terms": {
"1": "",
"2": "terms",
"30": "Term references",
"31": "A list of term references.",
"37": 1
},
":type:list": {
"1": ":type",
"2": "list",
"30": "List",
"31": "This kind indicates that the property is a list of values, each of the defined data type.",
"37": 13,
"39": 1
},
":ref-count:unit": {
"1": ":ref-count",
"2": "unit",
"30": "Units count",
"31": "This represents the number of unit objects featuring a specific property.",
"37": 1
},
":type:int": {
"1": ":type",
"2": "int",
"30": "String",
"31": "An integer data type indicates that the referred property may hold a 32 or 64 bit integral numeric value.",
"37": 22,
"39": 1
},
":type:private-modify": {
"1": ":type",
"2": "private-modify",
"30": "Private modify",
"31": "This kind indicates that the data property is reserved by the object, which means that it is automatically managed by the class and should not be explicitly set or modified by clients.",
"37": 19,
"39": 1
},
":type:quantitative": {
"1": ":type",
"2": "quantitative",
"30": "Quantitative",
"31": "This kind indicates that the property is one whose type of information is based in quantities or quantifiable data which is continuous. In general numerical values which can be aggregated in ranges fall under this category.",
"37": 16,
"39": 1
},
":ref-count:entity": {
"1": ":ref-count",
"2": "entity",
"30": "Entities count",
"31": "This represents the number of entity objects featuring a specific property.",
"37": 1
},
":ref-count:tag": {
"1": ":ref-count",
"2": "tag",
"30": "Tags count",
"31": "This represents the number of tag references.",
"37": 1
},
":ref-count:term": {
"1": ":ref-count",
"2": "term",
"30": "Terms count",
"31": "This represents the number of term references.",
"37": 1
},
":ref-count:node": {
"1": ":ref-count",
"2": "node",
"30": "Nodes count",
"31": "This represents the number of node references.",
"37": 1
},
":ref-count:edge": {
"1": ":ref-count",
"2": "edge",
"30": "Edges count",
"31": "This represents a number of edge references.",
"37": 1
},
":entity:country": {
"1": ":entity",
"2": "country",
"30": "Entity country",
"31": "The country of an entity.",
"37": 1
},
":description": {
"1": "",
"2": "description",
"30": "Description",
"31": "A description is a descriptive text that provides documentation on an object. A description should provide information related to context.",
"37": 1
},
":location:country": {
"1": ":location",
"2": "country",
"30": "Country",
"37": 1
},
":location:subcountry": {
"1": ":location",
"2": "subcountry",
"30": "Country subdivision",
"37": 1
}
},
"_tags": {
":id-local": {
"16": [
":id-local"
],
"25": ":type:string",
"26": [
":type:discrete"
],
"30": "Local identifier",
"31": "The local identifier is a string that uniquely identifies the object within a namespace or collection.",
"38": 23655,
"39": 1
},
":namespace": {
"16": [
":namespace"
],
"25": ":type:ref:term",
"26": [
":type:discrete"
],
"30": "Namespace",
"31": "The namespace is a term reference which groups related identifiers, prepended to the local identifier it constitutes the object global persistent identifier.",
"38": 23648,
"39": 1
},
":definition": {
"16": [
":definition"
],
"25": ":type:language-strings",
"26": [
":type:discrete"
],
"30": "Definition",
"31": "This attribute holds a list of texts representing definitions of an object in several languages. Each element holds the language in which the definition is expressed in and the text of the definition. A definition should provide detailed information on an object without reference to the context.",
"37": 52,
"38": 535,
"39": 2
},
":label": {
"16": [
":label"
],
"25": ":type:language-strings",
"26": [
":type:discrete"
],
"30": "Label",
"31": "This attribute holds a list of strings representing labels of an object the several languages. Each element holds the language in which the label is expressed in and the text of the label.",
"37": 139,
"38": 21714,
"39": 2
},
":type:kind": {
"16": [
":type:kind"
],
"25": ":type:enum-set",
"26": [
":type:categorical"
],
"30": "Data kind",
"31": "This attribute holds an enumerated set of term object references which indicate the cardinality and requirements of the data property. This type corresponds to the attributes of the data property, not to its type.",
"37": 141,
"39": 1
},
":type:data": {
"16": [
":type:data"
],
"25": ":type:enum",
"26": [
":type:categorical"
],
"30": "Data type",
"31": "This attribute holds an enumerated set of term object references which indicate the data type of the data property. This type corresponds to the primitive data representation and structure of the data property.",
"37": 144,
"39": 1
},
":terms": {
"16": [
":terms"
],
"25": ":type:ref:term",
"26": [
":type:discrete",
":type:list"
],
"30": "Terms",
"31": "This attribute holds a list of strings representing term object references, these elements are the native identifiers of the term objects they reference. The order in which these elements are set is significant: this list generally represents a lexical construct.",
"37": 153,
"39": 1
},
":ref-count:unit": {
"16": [
":ref-count:unit"
],
"25": ":type:int",
"26": [
":type:quantitative",
":type:private-modify"
],
"30": "Unit references count",
"31": "This attribute holds an integer value representing the number of unit objects featuring the current property. This is generally used to assess tag usage frequency in unit objects.",
"39": 1
},
":ref-count:entity": {
"16": [
":ref-count:entity"
],
"25": ":type:int",
"26": [
":type:quantitative",
":type:private-modify"
],
"30": "Entity references count",
"31": "This attribute holds an integer value representing the number of tag objects featuring the current property. This is generally used to assess tag usage frequency in entity objects.",
"39": 1
},
":ref-count:tag": {
"16": [
":ref-count:tag"
],
"25": ":type:int",
"26": [
":type:quantitative",
":type:private-modify"
],
"30": "Tag references count",
"31": "This attribute holds an integer value representing the number of tag objects referencing the current object.",
"39": 1
},
":ref-count:term": {
"16": [
":ref-count:term"
],
"25": ":type:int",
"26": [
":type:quantitative",
":type:private-modify"
],
"30": "Term references count",
"31": "This attribute holds an integer value representing the number of term objects referencing the current object.",
"39": 1
},
":ref-count:node": {
"16": [
":ref-count:node"
],
"25": ":type:int",
"26": [
":type:quantitative",
":type:private-modify"
],
"30": "Node references count",
"31": "This attribute holds an integer value representing the number of node objects referencing the current object.",
"39": 2
},
":ref-count:edge": {
"16": [
":ref-count:edge"
],
"25": ":type:int",
"26": [
":type:quantitative",
":type:private-modify"
],
"30": "Edge references count",
"31": "This attribute holds an integer value representing the number of edge objects referencing the current object."
},
":entity:country": {
"16": [
":entity:country"
],
"25": ":type:enum",
"26": [
":type:categorical"
],
"30": "Entity country",
"31": "This attribute holds the country of the entity, this is expressed as an ISO country code.",
"36": 20644,
"39": 1
},
":description": {
"16": [
":description"
],
"25": ":type:language-strings",
"26": [
":type:discrete"
],
"30": "Description",
"31": "This attribute holds a list of texts representing descriptions of the object in several languages. Each element holds the language in which the description is expressed in and the text of the description. A description should add context related information to the definition of the object.",
"37": 26,
"39": 108
},
":location:country": {
"16": [
":location:country"
],
"25": ":type:enum",
"26": [
":type:categorical"
],
"30": "Country",
"32": "This attribute holds the enumerated value describing the location country. For historical reasons legacy countries are included.",
"39": 1
},
":location:subcountry": {
"16": [
":location:subcountry"
],
"25": ":type:enum",
"26": [
":type:categorical"
],
"30": "Country subdivision",
"32": "This attribute holds the enumerated value describing the location country subdivision.",
"39": 1
}
}
},
"dictionary": {
"collection": "_tags",
"ids": [
":ref-count:unit",
":ref-count:entity",
":ref-count:tag",
":ref-count:term",
":ref-count:node",
":ref-count:edge",
":entity:country",
":location:country",
":location:subcountry"
],
"tags": {
"1": ":namespace",
"2": ":id-local",
"16": ":terms",
"25": ":type:data",
"26": ":type:kind",
"30": ":label",
"31": ":definition",
"32": ":description"
}
}
}
@gubi
Copy link
Author

gubi commented May 20, 2014

Con il metodo illustrato via mail ottengo questi risultati:

Form: 0 Type: :type:int
Form: 0 Kind: :type:quantitative,:type:private-modify
Form: 0 Label: Unit references count
Form: 0 Definition: This attribute holds an <em>integer</em> value representing the <em>number of unit objects featuring the current property</em>. This is generally used to assess <em>tag usage frequency in unit objects</em>.

Form: 1 Type: :type:int
Form: 1 Kind: :type:quantitative,:type:private-modify
Form: 1 Label: Entity references count
Form: 1 Definition: This attribute holds an <em>integer</em> value representing the <em>number of tag objects featuring the current property</em>. This is generally used to assess <em>tag usage frequency in entity objects</em>.

Form: 2 Type: :type:int
Form: 2 Kind: :type:quantitative,:type:private-modify
Form: 2 Label: Tag references count
Form: 2 Definition: This attribute holds an <em>integer</em> value representing the <em>number of tag objects referencing the current object</em>.

Form: 3 Type: :type:int
Form: 3 Kind: :type:quantitative,:type:private-modify
Form: 3 Label: Term references count
Form: 3 Definition: This attribute holds an <em>integer</em> value representing the <em>number of term objects referencing the current object</em>.

Form: 4 Type: :type:int
Form: 4 Kind: :type:quantitative,:type:private-modify
Form: 4 Label: Node references count
Form: 4 Definition: This attribute holds an <em>integer</em> value representing the <em>number of node objects referencing the current object</em>.

Form: 5 Type: :type:int
Form: 5 Kind: :type:quantitative,:type:private-modify
Form: 5 Label: Edge references count
Form: 5 Definition: This attribute holds an <em>integer</em> value representing the <em>number of edge objects referencing the current object</em>.

Form: 6 Type: :type:enum
Form: 6 Kind: :type:categorical
Form: 6 Label: Entity country
Form: 6 Definition: This attribute holds the <em>country of the entity</em>, this is expressed as an ISO country code.

Form: 7 Type: :type:enum
Form: 7 Kind: :type:categorical
Form: 7 Label: Country

Form: 8 Type: :type:enum
Form: 8 Kind: :type:categorical
Form: 8 Label: Country subdivision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment