CPD Results

The following document contains the results of PMD's CPD 5.6.1.

Duplications

File Line
de/tud/plt/r43ples/core/AggregationDraft.java 323
de/tud/plt/r43ples/core/CoEvolutionDraft.java 267
        Matcher m = patternAggQuery.matcher(this.request.query_sparql);

        boolean foundEntry = false;

        while (m.find()) {
            foundEntry = true;

            graphName = m.group("graph");
            revisionGraph = new RevisionGraph(graphName);

            startRevisionIdentifier = m.group("startRevisionIdentifier");
            endRevisionIdentifier = m.group("endRevisionIdentifier");

            logger.debug("graph: " + graphName);
            logger.debug("startRevisionIdentifier: " + startRevisionIdentifier);
            logger.debug("endRevisionIdentifier: " + endRevisionIdentifier);
        }
        if (!foundEntry) {
            throw new QueryErrorException("Error in query: " + this.request.query_sparql);
        }

        ArrayList<ChangeSet> changeSets = revisionGraph.getRevision(endRevisionIdentifier).getChangeSets();
        for (ChangeSet changeSet : changeSets) {
            if (changeSet.getPriorRevision().getRevisionIdentifier().equals(startRevisionIdentifier)) {
                changeSetStartToEnd = changeSet;
            }
        }

    }

}
File Line
de/tud/plt/r43ples/core/RevertCommitDraft.java 120
de/tud/plt/r43ples/core/UpdateCommitDraft.java 255
						+ "	rmo:wasAssociatedWith <%s>;"
						+ "	rmo:generated <%s>;"
						+ " rmo:hasChangeSet <%s> ;"
						+ "	rmo:commitMessage \"%s\";"
						+ " rmo:used <%s> ;"
						+ "	rmo:timeStamp \"%s\"^^xsd:dateTime. %n", commitUri,
				personUri, revisionUri, generatedRevision.getChangeSet().getChangeSetURI(), getMessage(), revUriOld, getTimeStamp()));

		String query = Config.prefixes
				+ String.format("INSERT DATA { GRAPH <%s> { %s } }", generatedRevision.getRevisionGraph().getRevisionGraphUri(),
				queryContent.toString());

		getTripleStoreInterface().executeUpdateQuery(query);

		// Move branch to new revision
		moveBranchReference(generatedRevision.getRevisionGraph().getRevisionGraphUri(), generatedRevision.getAssociatedBranch().getReferenceURI(), generatedRevision.getDerivedFromRevision().getRevisionURI(), revisionUri);

		return new RevertCommit(generatedRevision.getRevisionGraph(), commitUri, getUser(), getTimeStamp(), getMessage(), generatedRevision.getDerivedFromRevision(), generatedRevision, generatedRevision.getChangeSet());