代码修改后的版本,全部提交
This commit is contained in:
43
TencentCloud/Tkgdq/V20190411/Models/DescribeEntityRequest.cs
Normal file
43
TencentCloud/Tkgdq/V20190411/Models/DescribeEntityRequest.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEntityRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 实体名称
|
||||
/// </summary>
|
||||
[JsonProperty("EntityName")]
|
||||
public string EntityName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "EntityName", this.EntityName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEntityResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回查询实体相关信息
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public string Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Content", this.Content);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeRelationRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 输入第一个实体
|
||||
/// </summary>
|
||||
[JsonProperty("LeftEntityName")]
|
||||
public string LeftEntityName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入第二个实体
|
||||
/// </summary>
|
||||
[JsonProperty("RightEntityName")]
|
||||
public string RightEntityName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "LeftEntityName", this.LeftEntityName);
|
||||
this.SetParamSimple(map, prefix + "RightEntityName", this.RightEntityName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeRelationResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回查询实体间的关系
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public EntityRelationContent[] Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Content.", this.Content);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Tkgdq/V20190411/Models/DescribeTripleRequest.cs
Normal file
43
TencentCloud/Tkgdq/V20190411/Models/DescribeTripleRequest.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeTripleRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 三元组查询条件
|
||||
/// </summary>
|
||||
[JsonProperty("TripleCondition")]
|
||||
public string TripleCondition{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TripleCondition", this.TripleCondition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeTripleResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 返回三元组信息
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public TripleContent[] Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Content.", this.Content);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tkgdq/V20190411/Models/EntityRelationContent.cs
Normal file
57
TencentCloud/Tkgdq/V20190411/Models/EntityRelationContent.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EntityRelationContent : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 实体关系查询返回关系的object
|
||||
/// </summary>
|
||||
[JsonProperty("Object")]
|
||||
public EntityRelationObject[] Object{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体关系查询返回关系的subject
|
||||
/// </summary>
|
||||
[JsonProperty("Subject")]
|
||||
public EntityRelationSubject[] Subject{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体关系查询返回的关系名称
|
||||
/// </summary>
|
||||
[JsonProperty("Relation")]
|
||||
public string Relation{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Object.", this.Object);
|
||||
this.SetParamArrayObj(map, prefix + "Subject.", this.Subject);
|
||||
this.SetParamSimple(map, prefix + "Relation", this.Relation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tkgdq/V20190411/Models/EntityRelationObject.cs
Normal file
57
TencentCloud/Tkgdq/V20190411/Models/EntityRelationObject.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EntityRelationObject : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// object对应id
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string[] Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// object对应name
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string[] Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// object对应popular值
|
||||
/// </summary>
|
||||
[JsonProperty("Popular")]
|
||||
public long?[] Popular{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Id.", this.Id);
|
||||
this.SetParamArraySimple(map, prefix + "Name.", this.Name);
|
||||
this.SetParamArraySimple(map, prefix + "Popular.", this.Popular);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Tkgdq/V20190411/Models/EntityRelationSubject.cs
Normal file
57
TencentCloud/Tkgdq/V20190411/Models/EntityRelationSubject.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EntityRelationSubject : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Subject对应id
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string[] Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Subject对应name
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string[] Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Subject对应popular
|
||||
/// </summary>
|
||||
[JsonProperty("Popular")]
|
||||
public long?[] Popular{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Id.", this.Id);
|
||||
this.SetParamArraySimple(map, prefix + "Name.", this.Name);
|
||||
this.SetParamArraySimple(map, prefix + "Popular.", this.Popular);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Tkgdq/V20190411/Models/TripleContent.cs
Normal file
64
TencentCloud/Tkgdq/V20190411/Models/TripleContent.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class TripleContent : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 实体id
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体order
|
||||
/// </summary>
|
||||
[JsonProperty("Order")]
|
||||
public long? Order{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体流行度
|
||||
/// </summary>
|
||||
[JsonProperty("Popular")]
|
||||
public long? Popular{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Id", this.Id);
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Order", this.Order);
|
||||
this.SetParamSimple(map, prefix + "Popular", this.Popular);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
176
TencentCloud/Tkgdq/V20190411/TkgdqClient.cs
Normal file
176
TencentCloud/Tkgdq/V20190411/TkgdqClient.cs
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Tkgdq.V20190411
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Tkgdq.V20190411.Models;
|
||||
|
||||
public class TkgdqClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "tkgdq.tencentcloudapi.com";
|
||||
private const string version = "2019-04-11";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public TkgdqClient(Credential credential, string region)
|
||||
: this(credential, region, new ClientProfile())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
/// <param name="profile">Client profiles.</param>
|
||||
public TkgdqClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 输入实体名称,返回实体相关的信息如实体别名、实体英文名、实体详细信息、相关实体等
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEntityRequest"/></param>
|
||||
/// <returns><see cref="DescribeEntityResponse"/></returns>
|
||||
public async Task<DescribeEntityResponse> DescribeEntity(DescribeEntityRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEntityResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeEntity");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEntityResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 输入实体名称,返回实体相关的信息如实体别名、实体英文名、实体详细信息、相关实体等
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEntityRequest"/></param>
|
||||
/// <returns><see cref="DescribeEntityResponse"/></returns>
|
||||
public DescribeEntityResponse DescribeEntitySync(DescribeEntityRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEntityResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeEntity");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEntityResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 输入两个实体,返回两个实体间的关系,例如马化腾与腾讯公司不仅是相关实体,二者还存在隶属关系(马化腾属于腾讯公司)。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeRelationRequest"/></param>
|
||||
/// <returns><see cref="DescribeRelationResponse"/></returns>
|
||||
public async Task<DescribeRelationResponse> DescribeRelation(DescribeRelationRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeRelationResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeRelation");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeRelationResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 输入两个实体,返回两个实体间的关系,例如马化腾与腾讯公司不仅是相关实体,二者还存在隶属关系(马化腾属于腾讯公司)。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeRelationRequest"/></param>
|
||||
/// <returns><see cref="DescribeRelationResponse"/></returns>
|
||||
public DescribeRelationResponse DescribeRelationSync(DescribeRelationRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeRelationResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeRelation");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeRelationResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 三元组查询,主要分为两类,SP查询和PO查询。SP查询表示已知主语和谓语查询宾语,PO查询表示已知宾语和谓语查询主语。每一个SP或PO查询都是一个可独立执行的查询,TQL支持SP查询的嵌套查询,即主语可以是一个嵌套的子查询。其他复杂的三元组查询方法,请参考官网API文档示例。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeTripleRequest"/></param>
|
||||
/// <returns><see cref="DescribeTripleResponse"/></returns>
|
||||
public async Task<DescribeTripleResponse> DescribeTriple(DescribeTripleRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeTripleResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeTriple");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTripleResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 三元组查询,主要分为两类,SP查询和PO查询。SP查询表示已知主语和谓语查询宾语,PO查询表示已知宾语和谓语查询主语。每一个SP或PO查询都是一个可独立执行的查询,TQL支持SP查询的嵌套查询,即主语可以是一个嵌套的子查询。其他复杂的三元组查询方法,请参考官网API文档示例。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeTripleRequest"/></param>
|
||||
/// <returns><see cref="DescribeTripleResponse"/></returns>
|
||||
public DescribeTripleResponse DescribeTripleSync(DescribeTripleRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeTripleResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeTriple");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTripleResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user