[graphl-cvs] graphl/src/org/mediavirus/graphl/graph/rdf RDFNode.java
Status: Pre-Alpha
Brought to you by:
flo1
From: Flo L. <fl...@us...> - 2005-09-05 15:41:32
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph/rdf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13810/src/org/mediavirus/graphl/graph/rdf Modified Files: RDFNode.java Log Message: removed getLabel() method Index: RDFNode.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/graph/rdf/RDFNode.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** RDFNode.java 24 Aug 2005 16:10:43 -0000 1.9 --- RDFNode.java 5 Sep 2005 15:41:23 -0000 1.10 *************** *** 12,17 **** import org.mediavirus.graphl.graph.DefaultNode; import org.mediavirus.graphl.graph.Node; - import org.mediavirus.graphl.vocabulary.NS; - import org.mediavirus.util.ParseUtils; /** --- 12,15 ---- *************** *** 49,63 **** } - // TODO (2, 2h) label generation mechanism has to be hooked up here - public String getLabel() { - String label = getProperty(NS.graphl + "label"); - if ( label != null) return label; - else { - label = ParseUtils.guessName(getId()); - } - if (label != null) return label; - else return ""; - } - public String getType() { Node n = getFirstNeighbour("http://www.w3.org/1999/02/22-rdf-syntax-ns#type", true); --- 47,50 ---- |