Skip to content

Commit

Permalink
Merge pull request #3 from CluedIn-io/develop
Browse files Browse the repository at this point in the history
Merge Develop into Master
  • Loading branch information
dervalp authored Dec 11, 2019
2 parents 6bd1b22 + 6a55854 commit 1ec91f8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@

</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions docs/0.1.0-release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Features
Initial release
10 changes: 6 additions & 4 deletions src/ExternalSearch.Providers.KnowledgeGraph.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CluedIn.ExternalSearch" Version="2.4.0-alpha0100" />
<Compile Remove="Backup\**" />
<EmbeddedResource Remove="Backup\**" />
<None Remove="Backup\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CluedIn.ExternalSearch" Version="2.5.2" />
<PackageReference Include="EntityFramework" Version="6.1.2" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="RestSharp" Version="105.2.3" />
Expand All @@ -31,7 +36,4 @@
<Reference Include="System.Web" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<Folder Include="Backup\" />
</ItemGroup>
</Project>
14 changes: 13 additions & 1 deletion src/KnowledgeGraphExternalSearchProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
using CluedIn.ExternalSearch.Providers.KnowledgeGraph.Vocabularies;
using RestSharp;
using System.Web;
using CluedIn.Core.Data.Relational;
using CluedIn.Core.ExternalSearch;
using CluedIn.Core.Providers;
using EntityType = CluedIn.Core.Data.EntityType;

namespace CluedIn.ExternalSearch.Providers.KnowledgeGraph
{
/// <summary>The knowledge graph external search provider.</summary>
/// <seealso cref="CluedIn.ExternalSearch.IExternalSearchResultLogger" />
/// <seealso cref="CluedIn.ExternalSearch.ExternalSearchProviderBase" />
public partial class KnowledgeGraphExternalSearchProvider : ExternalSearchProviderBase, IExternalSearchResultLogger
public partial class KnowledgeGraphExternalSearchProvider : ExternalSearchProviderBase, IExternalSearchResultLogger, IExtendedEnricherMetadata
{
/**********************************************************************************************************
* FIELDS
Expand Down Expand Up @@ -1425,5 +1429,13 @@ private void PopulateMetadata(IEntityMetadata metadata, IExternalSearchQueryResu
if (resultItem.Data.url != null && Uri.TryCreate(resultItem.Data.url, UriKind.Absolute, out uri))
metadata.Uri = uri;
}

public string Icon { get; } = "Resources.knowledgegraph.jpg";
public string Domain { get; } = "https://developers.google.com/knowledge-graph";
public string About { get; } = "Knowledge Graph is enricher which allows you to find entities using Google Knowledge Graph API";
public AuthMethods AuthMethods { get; } = null;
public IEnumerable<Control> Properties { get; } = null;
public Guide Guide { get; } = null;
public IntegrationType Type { get; } = IntegrationType.Cloud;
}
}
Binary file added src/Resources/knowledgegraph.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ec91f8

Please sign in to comment.