public class KiWiTriple extends Object implements org.openrdf.model.Statement, Serializable
Base/inferred flags denote the status of support of a triple:
Constructor and Description |
---|
KiWiTriple() |
KiWiTriple(Date created) |
KiWiTriple(KiWiResource subject,
KiWiUriResource predicate,
KiWiNode object,
KiWiResource context) |
KiWiTriple(KiWiResource subject,
KiWiUriResource predicate,
KiWiNode object,
KiWiResource context,
Date created) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
KiWiResource |
getContext()
Get the unique triple identifier of this extended triple.
|
Date |
getCreated() |
KiWiResource |
getCreator()
Return the author of this extended triple.
|
Date |
getDeletedAt()
Return the date the triple has been deleted, or null in case the triple is not deleted
|
long |
getId() |
String |
getKey()
Return a unique key to be used in caches and similar.
|
KiWiNode |
getObject()
Get the object of this extended triple.
|
KiWiUriResource |
getPredicate()
Get the property of this extended triple.
|
KiWiResource |
getSubject()
Get the subject of this extended triple.
|
int |
hashCode() |
boolean |
isDeleted() |
boolean |
isInferred() |
boolean |
isNewTriple() |
void |
setContext(KiWiResource context)
Set the unique triple identifier of this extended triple to the provided KiWiUriResource.
|
void |
setCreated(Date created) |
void |
setCreator(KiWiResource author)
Set the author of this extended triple.
|
void |
setDeleted(boolean deleted) |
void |
setDeletedAt(Date deletedAt)
Set the date the triple has been deleted.
|
void |
setId(long id) |
void |
setInferred(boolean inferred) |
void |
setNewTriple(boolean newTriple) |
void |
setObject(KiWiNode object)
Set the object of this extended triple to the given KiWiNode (either a resource or a literal)
|
void |
setPredicate(KiWiUriResource property)
Set the property of this extended triple.
|
void |
setSubject(KiWiResource subject)
Set the subject of this extended triple to the provided KiWiResource
|
String |
toString() |
public KiWiTriple()
public KiWiTriple(Date created)
public KiWiTriple(KiWiResource subject, KiWiUriResource predicate, KiWiNode object, KiWiResource context)
public KiWiTriple(KiWiResource subject, KiWiUriResource predicate, KiWiNode object, KiWiResource context, Date created)
public KiWiNode getObject()
getObject
in interface org.openrdf.model.Statement
public void setObject(KiWiNode object)
object
- public KiWiUriResource getPredicate()
getPredicate
in interface org.openrdf.model.Statement
public void setPredicate(KiWiUriResource property)
property
- public KiWiResource getSubject()
getSubject
in interface org.openrdf.model.Statement
public void setSubject(KiWiResource subject)
subject
- public KiWiResource getContext()
getContext
in interface org.openrdf.model.Statement
public void setContext(KiWiResource context)
context
- public KiWiResource getCreator()
public void setCreator(KiWiResource author)
author
- public Date getCreated()
public void setCreated(Date created)
created
- the created to setpublic Date getDeletedAt()
public void setDeletedAt(Date deletedAt)
deletedAt
- public long getId()
public void setId(long id)
id
- the id to setpublic boolean isDeleted()
public void setDeleted(boolean deleted)
deleted
- the deleted to setpublic boolean equals(Object o)
public int hashCode()
public String getKey()
public boolean isInferred()
public void setInferred(boolean inferred)
public boolean isNewTriple()
public void setNewTriple(boolean newTriple)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.