Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
8e534a7961
@ -1,8 +1,7 @@
|
|||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
|
||||||
- oraclejdk7
|
- oraclejdk7
|
||||||
|
- oraclejdk8
|
||||||
- openjdk7
|
- openjdk7
|
||||||
- openjdk6
|
|
||||||
|
|
||||||
script: ./refine test
|
script: ./refine test
|
||||||
|
@ -39,7 +39,7 @@ import static org.jrdf.graph.AnySubjectNode.ANY_SUBJECT_NODE;
|
|||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
@ -107,7 +107,7 @@ public class RdfTripleImporter extends ImportingParserBase {
|
|||||||
|
|
||||||
ClosableIterable<Triple> triples = graph.find(ANY_SUBJECT_NODE, ANY_PREDICATE_NODE, ANY_OBJECT_NODE);
|
ClosableIterable<Triple> triples = graph.find(ANY_SUBJECT_NODE, ANY_PREDICATE_NODE, ANY_OBJECT_NODE);
|
||||||
try {
|
try {
|
||||||
Map<String, List<Row>> subjectToRows = new HashMap<String, List<Row>>();
|
Map<String, List<Row>> subjectToRows = new LinkedHashMap<String, List<Row>>();
|
||||||
Column subjectColumn = new Column(project.columnModel.allocateNewCellIndex(), "subject");
|
Column subjectColumn = new Column(project.columnModel.allocateNewCellIndex(), "subject");
|
||||||
project.columnModel.addColumn(0, subjectColumn, false);
|
project.columnModel.addColumn(0, subjectColumn, false);
|
||||||
project.columnModel.setKeyColumnIndex(0);
|
project.columnModel.setKeyColumnIndex(0);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.google.refine.importers.tree;
|
package com.google.refine.importers.tree;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
@ -9,8 +9,8 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
* A column group describes a branch in tree structured data
|
* A column group describes a branch in tree structured data
|
||||||
*/
|
*/
|
||||||
public class ImportColumnGroup extends ImportVertical {
|
public class ImportColumnGroup extends ImportVertical {
|
||||||
public Map<String, ImportColumnGroup> subgroups = new HashMap<String, ImportColumnGroup>();
|
public Map<String, ImportColumnGroup> subgroups = new LinkedHashMap<String, ImportColumnGroup>();
|
||||||
public Map<String, ImportColumn> columns = new HashMap<String, ImportColumn>();
|
public Map<String, ImportColumn> columns = new LinkedHashMap<String, ImportColumn>();
|
||||||
public int nextRowIndex; // TODO: this can be hoisted into superclass
|
public int nextRowIndex; // TODO: this can be hoisted into superclass
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -264,10 +264,10 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
XmlImportUtilitiesStub.createColumnsFromImport(project, columnGroup);
|
XmlImportUtilitiesStub.createColumnsFromImport(project, columnGroup);
|
||||||
log(project);
|
log(project);
|
||||||
assertProjectCreated(project, 4, 0);
|
assertProjectCreated(project, 4, 0);
|
||||||
Assert.assertEquals(project.columnModel.columns.get(0).getName(), "world");
|
Assert.assertEquals(project.columnModel.columns.get(0).getName(), "hello");
|
||||||
Assert.assertEquals(project.columnModel.columns.get(1).getName(), "hello");
|
Assert.assertEquals(project.columnModel.columns.get(1).getName(), "world");
|
||||||
Assert.assertEquals(project.columnModel.columns.get(2).getName(), "bar");
|
Assert.assertEquals(project.columnModel.columns.get(2).getName(), "foo");
|
||||||
Assert.assertEquals(project.columnModel.columns.get(3).getName(), "foo");
|
Assert.assertEquals(project.columnModel.columns.get(3).getName(), "bar");
|
||||||
Assert.assertEquals(project.columnModel.columnGroups.get(0).keyColumnIndex, 2);
|
Assert.assertEquals(project.columnModel.columnGroups.get(0).keyColumnIndex, 2);
|
||||||
Assert.assertEquals(project.columnModel.columnGroups.get(0).startColumnIndex, 2);
|
Assert.assertEquals(project.columnModel.columnGroups.get(0).startColumnIndex, 2);
|
||||||
Assert.assertEquals(project.columnModel.columnGroups.get(0).columnSpan, 2);
|
Assert.assertEquals(project.columnModel.columnGroups.get(0).columnSpan, 2);
|
||||||
|
@ -36,11 +36,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>OpenRefine</title>
|
<title>OpenRefine</title>
|
||||||
|
<link rel="icon" type="image/png" href="images/favicon.png">
|
||||||
|
$styleInjection
|
||||||
<script type="text/javascript">var theProject = { id : $projectID };</script>
|
<script type="text/javascript">var theProject = { id : $projectID };</script>
|
||||||
<script type="text/javascript" src="wirings.js"></script>
|
<script type="text/javascript" src="wirings.js"></script>
|
||||||
<link rel="icon" type="image/png" href="images/favicon.png">
|
|
||||||
$scriptInjection
|
$scriptInjection
|
||||||
$styleInjection
|
|
||||||
<script>Refine.encodings = $encodingJson; Refine.defaultEncoding = $defaultEncoding;</script>
|
<script>Refine.encodings = $encodingJson; Refine.defaultEncoding = $defaultEncoding;</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user