代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

View 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);
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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);
}
}
}

View 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);
}
}
}

View File

@@ -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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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;
}
}
}