jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1299061 - /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/path/PathFactory.java
Date Fri, 09 Mar 2012 21:36:14 GMT
Author: andy
Date: Fri Mar  9 21:36:13 2012
New Revision: 1299061

URL: http://svn.apache.org/viewvc?rev=1299061&view=rev
Log:
Property paths: support for + and *, {+} and {*}
Complete syntax support for experimental SHORTEST

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/path/PathFactory.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/path/PathFactory.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/path/PathFactory.java?rev=1299061&r1=1299060&r2=1299061&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/path/PathFactory.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/path/PathFactory.java
Fri Mar  9 21:36:13 2012
@@ -19,7 +19,6 @@
 package com.hp.hpl.jena.sparql.path;
 
 import com.hp.hpl.jena.graph.Node ;
-import com.hp.hpl.jena.sparql.ARQNotImplemented ;
 
 public class PathFactory
 {
@@ -32,17 +31,15 @@ public class PathFactory
     public static Path pathFixedLength(Path path, long count)   { return new P_FixedLength(path,
count) ; }
     public static Path pathDistinct(Path path)          { return new P_Distinct(path) ; }
     public static Path pathMulti(Path path)             { return new P_Multi(path) ; }
+    public static Path pathShortest(Path path)          { return new P_Shortest(path) ; }
 
     public static Path pathAlt(Path path1, Path path2)  { return new P_Alt(path1, path2)
; }
     public static Path pathSeq(Path path1, Path path2)  { return new P_Seq(path1, path2)
; }
     
     public static Path pathZeroOrOne(Path path)         { return new P_ZeroOrOne(path) ;
}
 
-    public static Path pathZeroOrMore1(Path path)        { return new P_ZeroOrMore1(path)
; }
-    public static Path pathOneOrMore1(Path path)         { return new P_OneOrMore1(path)
; }
-    public static Path pathZeroOrMoreN(Path path)        { return new P_ZeroOrMoreN(path)
; }
-    public static Path pathOneOrMoreN(Path path)         { return new P_OneOrMoreN(path)
; }
-    
-    // UNFINISHED
-    public static Path pathShortest(Path path)           { throw new ARQNotImplemented("Not
implemented: SHORTEST") ; }
+    public static Path pathZeroOrMore1(Path path)       { return new P_ZeroOrMore1(path)
; }
+    public static Path pathOneOrMore1(Path path)        { return new P_OneOrMore1(path) ;
}
+    public static Path pathZeroOrMoreN(Path path)       { return new P_ZeroOrMoreN(path)
; }
+    public static Path pathOneOrMoreN(Path path)        { return new P_OneOrMoreN(path) ;
}
 }



Mime
View raw message