class JsonLD extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsonLD
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new JsonLD(graph: Graph)
Type Members
- sealed trait ResourceOrClassType[T] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addContext(builder: LDContextBuilder, json: JsonObject): JsonObject
- def addEdgesToJson[T](resource: Resource[T], builder: LDContextBuilder = LDContextBuilder()): (JsonObject, LDContextBuilder)
- def anyToJson(value: Any, eCT: List[ClassType[_]] = List(), builder: LDContextBuilder = LDContextBuilder()): (Json, LDContextBuilder)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def ctListToJson(l: List[ClassType[_]], builder: LDContextBuilder = LDContextBuilder()): (Json, LDContextBuilder)
- def dataTypeToJson(dataType: DataType[_], builder: LDContextBuilder = LDContextBuilder()): (JsonObject, LDContextBuilder)
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getClassType[T](obj: JsonObject, classType: ClassType[T], builder: LDGraphBuilder = LDGraphBuilder()): Try[(List[ClassType[_]], JsonObject)]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val httpClient: HttpClient
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jsIndexToEdges[T <: Resource[_]](resource: T, key: Property, container: String, classType: ClassType[_], obj: JsonObject, builder: LDGraphBuilder = LDGraphBuilder()): Try[List[Edge[_, _]]]
- def jsToToEdge(obj: JsonObject, property: Property, builder: LDGraphBuilder = LDGraphBuilder()): Try[(ClassType[Any], Any)]
- def jsValueToValue(obj: JsonObject, classType: ClassType[_], builder: LDGraphBuilder = LDGraphBuilder()): Try[(ClassType[Any], Any)]
- def jsonToClassType(obj: JsonObject, builder: LDGraphBuilder = LDGraphBuilder()): Try[ClassType[_]]
- def jsonToDataType(_obj: JsonObject, _builder: LDGraphBuilder = LDGraphBuilder()): Try[DataType[_]]
- def jsonToEdge[T <: Resource[_]](resource: T, jKey: String, jValue: Json, builder: LDGraphBuilder = LDGraphBuilder()): List[Edge[_, _]]
- def jsonToOntology(_obj: JsonObject, _builder: LDGraphBuilder = LDGraphBuilder()): Try[Ontology]
- def jsonToProperty(_obj: JsonObject, _builder: LDGraphBuilder = LDGraphBuilder()): Try[Property]
- def jsonToValue[T](classType: ClassType[T], json: Json, builder: LDGraphBuilder = LDGraphBuilder()): Try[(ClassType[T], T)]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nodeToJson(node: Node, builder: LDContextBuilder = LDContextBuilder()): (JsonObject, LDContextBuilder)
this method can be overridden when extending the parser and add additional Scala object representations (e.g.
this method can be overridden when extending the parser and add additional Scala object representations (e.g. Ontology and Traversal classes) and corresponding parsers. Add a wildcard match-case which points to this method to re-use the base matchers. E.g. case _ => super.nodeResourceToJson(nodeResource, builder)
- def nodeToJsonWithContext(node: Node, builder: LDContextBuilder = LDContextBuilder()): (Json, LDContextBuilder)
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
ontologyToJson(ontology: Ontology, builder: LDContextBuilder = LDContextBuilder()): (JsonObject, LDContextBuilder)
ontology to json, TODO: add and return @context
- def parseContext(json: JsonObject, builder: LDGraphBuilder = LDGraphBuilder()): Try[(LDGraphBuilder, JsonObject)]
-
def
propertyToJson(key: Property, builder: LDContextBuilder = LDContextBuilder()): (JsonObject, LDContextBuilder)
property to json, TODO: add and return @context
- def resource(obj: JsonObject, builder: LDGraphBuilder = LDGraphBuilder(), expectedOntologies: ListSet[Ontology] = ListSet[Ontology](), sourceUrl: Option[String] = None): Try[Resource[_]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object ResourceOrClassType