Commit 841de6e8 authored by Gerrit Hübbers's avatar Gerrit Hübbers 🃏
Browse files

Create test to iterate through all FQS bundles

parent 323c31e6
......@@ -10,10 +10,12 @@ import java.nio.charset.StandardCharsets;
import java.time.Instant;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.io.IOUtils;
......@@ -914,6 +916,30 @@ public class XsltTransformerOaiPmhBundlesStreamSourceTest {
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher.country", "DEU") ) );
}
@Test
public void iterateThroughFqsPublications() throws IOException {
Map<String, String> map = new HashMap<>();
String xMetaDissPlusXsltString = IOUtils.toString(
getClass().
getClassLoader().
getResourceAsStream("xslt/fqs-nlm-2-xmlbundle.xslt"), StandardCharsets.UTF_8);
map.put("nlm", xMetaDissPlusXsltString);
String oaiDcXsltString = IOUtils.toString(
getClass().
getClassLoader().
getResourceAsStream("xslt/fqs-oai_dc-2-xmlbundle.xslt"), StandardCharsets.UTF_8);
map.put("oai_dc", oaiDcXsltString);
XsltTransformerOaiPmhBundlesStreamSource bss = new XsltTransformerOaiPmhBundlesStreamSource("http://www.qualitative-research.net/index.php/fqs/oai/", map);
List<Bundle> bundles = bss.getBundlesStream().peek( b -> LOG.info( b.toString() ) ).collect( Collectors.toList() );
bundles.forEach( b -> LOG.info( b.getMetadata().stream().filter( m -> m.getKey().equals("internal.dda.reference") ).map( Metadatum::getValue).findFirst().get() ) );
}
@Test
public void extractUrnFromFqsAbstract() {
String underTest = "Joint couple interviews allow for the collection of data on interactions, negotiations, couple performances, and couple presentations by couples in situ. Joint interviews provide insight into concrete couple practices and representations of those practices as part of the interview as a form of doing couple, but also as doing gender, doing family, doing recognition, or doing inequality. By focusing on individuals-in-couple-relationships, couple interviews can reveal power relations and inequalities within the couple relationship, the processual quality, and the dynamic of the social relation.Joint couple interviews are increasingly employed in interpretive social research, however, less frequently than individual interviews. To date, there has been little systematic work in German-speaking countries on methodological and methodical issues related to joint couple interviews. Proceeding from an interpretative perspective and considering couple relationships as a reality sui generis and as a distinct object of analysis, we outline its interests for sociology. We also briefly review selected empirical studies on couples, and focus especially on methodological questions related to conducting joint couple interviews, as well as limitations and open method(olog)ical questions (not only) for the sociological research on couples.URN: http://nbn-resolving.de/urn:nbn:de:0114-fqs170243";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment