[graphl-cvs] graphl/src/org/mediavirus/graphl/vocabulary SimpleVocabularyRegistry.java
Status: Pre-Alpha
Brought to you by:
flo1
|
From: Flo L. <fl...@us...> - 2004-10-19 16:17:50
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl/vocabulary In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17517/src/org/mediavirus/graphl/vocabulary Modified Files: SimpleVocabularyRegistry.java Log Message: - FEATURE further commandline options to remove controls and menubar - FEATURE load url from commandline - FEATURE refresh every n seconds commandline option - FEATURE affine coordinate transformation for geo positioning on a map - FEATURE removed length property of edge, replaced by generic length calculation from any property in springEdgeLayouter - FEATURE configurable stroke for BoxNodePainter, ShapeNodePainter - FEATURE replaced rdfutils function by own implementation in ParseUtils Index: SimpleVocabularyRegistry.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/vocabulary/SimpleVocabularyRegistry.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SimpleVocabularyRegistry.java 14 Oct 2004 13:03:05 -0000 1.3 --- SimpleVocabularyRegistry.java 19 Oct 2004 16:17:07 -0000 1.4 *************** *** 9,12 **** --- 9,14 ---- import java.util.Vector; + import org.mediavirus.util.ParseUtils; + import edu.unika.aifb.rdf.api.util.RDFUtil; *************** *** 53,62 **** */ public String compactNamespace(String uri) { ! String prefix = RDFUtil.guessNamespace(uri); if (prefix == null) return uri; for (Iterator iter = registeredVocabularies.iterator(); iter.hasNext();) { Vocabulary vocab = (Vocabulary) iter.next(); if (vocab.getNamespace().equals(prefix)) { ! return vocab.getDefaultNamespacePrefix() + ":" + RDFUtil.guessName(uri); } } --- 55,64 ---- */ public String compactNamespace(String uri) { ! String prefix = ParseUtils.guessNamespace(uri); if (prefix == null) return uri; for (Iterator iter = registeredVocabularies.iterator(); iter.hasNext();) { Vocabulary vocab = (Vocabulary) iter.next(); if (vocab.getNamespace().equals(prefix)) { ! return vocab.getDefaultNamespacePrefix() + ":" + ParseUtils.guessName(uri); } } |