Skip to content

yveskaufmann/sharkb_fbimporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faebook Importer for Shark

The FacebookImporter for Shark is an extension for the Shark Framework. It's enables developers to build Facebook importers for the SharkKnowledgeBase by providing an API for building extendable Facebook importers which requests data from Facebook's GraphAPI and imports this data into a Shark KnowledgeBase.

Features

  • Execution environment for Facebook importers
  • API binding for Facebook's Graph API (Based on Spring Social Facebook)
  • Model Classes for Facebook's Graph API
  • Login for Facebook's Graph API
  • ContextPoint Data binding
  • Example Importer which:
    • imports the currently logged in user as Peer Semantic Tag
    • imports it's friends
    • imports it's family relationships
    • imports it's significant other relationship
    • imports it's public posts

Structure of the Importer

API Structure

Build

In order to build the facebook importer you need a installed Java SE Runtime Environment 8 or alternatively a installed Java SE Development Kit 8 and optional a installed Gradle>=2.4 but this only a recommendation the build script could be used without any gradle installation.

The Facebook importer comes with a Gradle build script which is responsible to build the importer. The build script can be executed by any major IDE which provides a Gradle integration. If your are a NetBeans user then give GradleSupport a try.

If your prefer the use of the command line then you could use gradle itself or the gradle wrapper (gradlew) which is shipped with the source code of the importer. In order to run the importer use the following commands:

# Use this command when you have already installed gradle 2.4 >=
gralde run

# Use this command when you don't have installed gradle 
./gradlew run
# or for window users:
gradlew.bat run

For more details how to use Gradle please visit the Gradle Getting Started Guide.

Gradle Tasks

Tasks Description
build Builds the importer, creates javadoc and load all required dependencies from central maven repository
dependencies Load all required dependencies from central maven repository.
javadoc Generates the javadoc for the facebook importer.
distZip Creates a distribution archive which contains the builded importer, created javadoc and os specific scripts for starting the facebook importer. When you only wanna use the example importer than this is choise. The buileded archive could be found inside the build/distributions directory.
run Build and run the facebook importer.
eclipse Generates a eclipse ide project in order to open the source code in eclipse.
idea Generates a idea ide project in order to open the source code in idea.