-
Notifications
You must be signed in to change notification settings - Fork 72
/
Jena.scala
36 lines (30 loc) · 986 Bytes
/
Jena.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.w3.banana.jena
import org.w3.banana._
import com.hp.hpl.jena.graph.{ Graph => JenaGraph, Triple => JenaTriple, Node => JenaNode, _ }
import com.hp.hpl.jena.query.{ Query => JenaQuery, QuerySolution, ResultSet }
import com.hp.hpl.jena.update.{UpdateRequest, UpdateAction}
import scalaz.Id.Id
trait Jena extends RDF {
// types related to the RDF datamodel
type Graph = JenaGraph
type Triple = JenaTriple
type Node = JenaNode
type URI = Node_URI
type BNode = Node_Blank
type Literal = Node_Literal
type TypedLiteral = Node_Literal
type LangLiteral = Node_Literal
type Lang = String
// types for the graph traversal API
type NodeMatch = JenaNode
type NodeAny = Node_ANY
// types related to Sparql
type Query = JenaQuery
type SelectQuery = JenaQuery
type ConstructQuery = JenaQuery
type AskQuery = JenaQuery
type UpdateQuery = UpdateRequest
type Solution = QuerySolution
type Solutions = ResultSet
}
object Jena extends JenaModule