- Book Chapter
- 10.1016/b978-155860711-8/50003-4
Chapter 2 - Querying
- Jan 01, 2006
- Querying XML
- Jim Melton + 1 more +1
Chapter 2 - Querying
Cassandra is one of the widely scalable open-source not only structured query language databases. Cassandra is best for handling gigantic amounts of structured, semi structured, and unstructured data across distributed data centers and the cloud. Cassandra Query Language (CQL) Shell stands for Cassandra query language, or as more commonly known as cqlsh, this is a REPL for running the commands on CQL statements against a Cassandra cluster interactively. Cassandra can provide continuous availability, linear scalability, and operational simplicity across many commodity servers and not using a single point of failure, together with a robust dynamic data model designed for the highest flexibility and quick-response instances. NodeTool is the Swiss army knife of tools for Cassandra. By default, cqlsh will connect to the Cassandra node on local host.
Chapter 2 - Querying
Chapter 2 - Querying
Using Reinforcement Learning to Allocate and Manage SFC in Cellular Networks
In this paper, we propose the use of reinforcement learning to deploy a service function chain (SFC) of cellular network service and manage the VNFs operation. We consider that the SFC is deployed by the reinforcement learning agent considering a scenario with distributed data centers, where the virtual network functions (VNFs) are deployed in virtual machines in commodity servers. The VNF management is related to create, delete, and restart the VNFs. The main purpose is to reduce the number of lost packets taking into account the energy consumption of the servers. We use the Proximal Policy Optimization (PPO2) algorithm to implement the agent and preliminary results show that the agent is able to allocate the SFC and manage the VNFs, reducing the number of lost packets.
Read moreExtending the TOP Framework with an Ontology-Based Text Search Component.
Constructing search queries that deal with complex concepts is a challenging task without proficiency in the underlying query language - which holds true for either structured or unstructured data. Medical data might encompass both types, with valuable information present in one type but not the other. The TOP Framework provides clinical practitioners as well as researchers with a unified framework for querying diverse data types and, furthermore, facilitates an easier and intuitive approach. Additionally, it supports collaboration on query modeling and sharing. Having demonstrated its effectiveness with structured data, we introduce the integration of a component for unstructured data, specifically medical documents. Our proof-of-concept shows a query language agnostic framework to model search queries for unstructured and structured data.
Read moreImpact of obesity on the cost of major colorectal surgery9
The incidence of obesity is increasing in New Zealand. The aim of the study was to determine whether obesity impacts on the cost of treating patients undergoing major colorectal surgery. Between 1 February 2008 and 31 July 2009, consecutive patients undergoing major colorectal surgery at Christchurch Hospital, New Zealand, were enrolled in the study. Body mass index (BMI) and waist-to-hip ratios were assessed using standardized techniques. Patients with a high surgical risk were identified using established criteria and all patients were assessed using the Portsmouth modification of the Physiological and Operative Severity Score for the enUmeration of Mortality and morbidity (P-POSSUM). Cost analysis was performed using a structured query language database. Patients were analysed using accepted groupings for BMI, waist circumference and waist-to-hip ratio. A total of 372 patients were enrolled in the study, of whom 345 were included in the analysis. The incidence of diabetes was significantly higher with increased BMI (P = 0·002), whereas all other co-morbidities, and P-POSSUM values, did not differ between BMI groups. The groups were similar in terms of case mix. Treatment of obese patients (BMI at least 30 kg/m(2)) was significantly more expensive than that of normal weight patients (BMI 20-24·9 kg/m(2)): €10,036 versus €7390 (P = 0·005). Treatment costs for patients with a BMI of 25-29·9 kg/m(2) were next highest (€9048) followed by those for patients whose BMI was less than 20 kg/m(2) (€8884). Patients with a waist circumference above recognized standards for men and women also cost significantly more to treat (€10,063 versus €7836; P = 0·014). Excess body fat was associated with higher costs of major colorectal surgery.
Read moreDynamic Data Infrastructure Security for Interoperable e-Healthcare Systems: A Semantic Feature-Driven NoSQL Intrusion Attack Detection Model
The exponential rise in advanced software computing and low-cost hardware has broadened the horizon for the Internet of Medical Things (IoMT), interoperable e-Healthcare systems serving varied purposes including electronic healthcare records (EHRs) and telemedicine. However, being heterogeneous and dynamic in nature, their database security remains a challenge forever. Numerous intrusion attacks including bot-attack and malware have confined major classical databases towards e-Healthcare. Despite the robustness of NoSQL over the structured query language databases, the dynamic data nature over a heterogeneous environment makes it vulnerable to intrusion attacks, especially over interoperable e-Healthcare systems. Considering these challenges, this work proposed a first of its kind semantic feature-driven NoSQL intrusion attack (NoSQL-IA) detection model for interoperable e-Healthcare systems. This work assessed the efficacy of the different semantic feature-extraction methods like Word2Vec, Continuous Bag of Words, N-Skip Gram (SKG), Count Vectorizer, TF-IDF, and GLOVE towards NoSQL-IA prediction. Subsequently, to minimize computational exhaustion, different feature selection methods including Wilcoxon Rank Sum Test (WRST), significant predictor test, principal component analysis, Select K-Best, and variance threshold feature selection algorithms were employed. To alleviate the data imbalance problem, it applied different resampling methods including upsampling, downsampling, and synthetic minority oversampling technique (SMOTE) over the selected features. Later, Min–Max normalization was performed over the input feature vectors to alleviate any possibility of overfitting. Towards NoSQL-IA prediction, different machine learning methods like Multinomial Naïve Bayes, decision tree, logistic regression, support vector machine, k-NN, AdaBoost, Extra Tree Classifier, random forest ensemble, and XG-Boost were applied, which classified each input query as the regular query or the NoSQL-IA attack query. The depth performance assessment revealed that the use of Word2Vec features SKG in sync with VTFS feature selection and SMOTE resampling processed with the bootstrapped random forest classifier can provide the best performance in terms of high accuracy (98.86%), F-Measure (0.974), and area under the curve (AUC) (0.981), thus enabling it suitable for interoperable e-Healthcare database security.
Read moreCassandra
Cassandra is a distributed storage system for managing structured data that is designed to scale to a very large size across many commodity servers, with no single point of failure. Reliability at massive scale is a very big challenge. Outages in the service can have significant negative impact. Hence Cassandra aims to run on top of an infrastructure of hundreds of nodes (possibly spread across different datacenters). At this scale, small and large components fail continuously; the way Cassandra manages the persistent state in the face of these failures drives the reliability and scalability of the software systems relying on this service. Cassandra has achieved several goals -- scalability, high performance, high availability and applicability. In many ways Cassandra resembles a database and shares many design and implementation strategies with databases. Cassandra does not support a full relational data model; instead, it provides clients with a simple data model that supports dynamic control over data layout and format.
Read moreReal-time data exchange using web service with CIM for aging estimation of distribution transformers
This paper applies web services using the common information model (CIM) to exchange measurement data from the transformer terminal unit (TTU) to the distribution management system (ADMS) for the aging estimation of distribution transformers. An application programming interface (API) is designed by using web services such as simple object access protocol (SOAP) and representational state transfer (RESTful) for TTU measurement data exchange. The structured query language (SQL) and the not only SQL (NoSQL) databases are used to store historical TTU data for neural network (NN) model training. An optimization architecture of web service with the database is proposed to increase data exchange performance. The exchanged real-time TTU data is input into a trained NN model that can provide a reference aging factor for the utility crew to balance distribution transformer loading. Finally, the graphic user interface (GUI) is designed in this paper to display real-time information and achieve asset management of distribution transformers.
Read moreBlockchain-based mechanism for fine-grained authorization in data crowdsourcing
Blockchain-based mechanism for fine-grained authorization in data crowdsourcing
NoSQL Hands On
NoSQL Hands On
Robust Dynamic Space-Time Panel Data Models Using?-Contamination: an Application to Crop Yields and Climate Change
Robust Dynamic Space-Time Panel Data Models Using?-Contamination: an Application to Crop Yields and Climate Change
Developing integrated Web and database applications using JAVA applets and JDBC drivers
With the maturity of network technology, the deterministic factor of a 'successful' web site does not as much depend on its connectivity to the Internet, rather the content of web pages plays a more important role. The inclusion of dynamic data, for example, has become an increasingly desirable feature of a web page. Web servers that support dynamic web pages are capable of retrieving data at the time of user requests. Rather than being statically included in the web page, these dynamically retrieved data may physically reside in various file systems or database servers across the Internet.JAVA, a new object-oriented programming language, has become a buzzword since its introduction by Sun Microsystems in 1994 [1, 2, 3]. It was claimed that JAVA, via its ability to embed applets in a web page, would make the content of a web page alive and dynamic. Data and information on a web page can now be updated dynamically when users request them.In this paper, we discuss our experience of developing JAVA applets that use various types of JDBC (JAVA Database Connectivity) drivers to connect to and then manipulate data stored in SQL (Structured Query Language) database servers. We first start with the discussion of general client/server model involving JDBC, and then introducing the procedure of setting up programming projects employing this approach in an undergraduate database course.
Read moreUse of computer aided management information systems in the food and beverage industry in Germany
Use of computer aided management information systems in the food and beverage industry in Germany
Dynamic Model for Stiff String Torque and Drag
A dynamic stiff string torque and drag (T&D) model is presented that assumes steady state motion of the drillstring as its basis for calculations. Results are compared to previously published T&D models that are based on static equilibrium. The novelty of the new dynamic model is the ability to solve T&D operations of the entire drillstring from bit to top drive in reasonable time using standard engineering computers. The new approach is based on a 3D dynamic model of drillstring and BHA in an elastic borehole. It considers bending stiffness, torsional stiffness, contact forces, and friction with localization of contact points. A numerical method is described that has proven to have excellent convergence. Complete governing equations are provided and the method is described in detail to permit readers to replicate results. The dynamic model is compared to two static stiff string models. Comparisons are also provided for three conventional soft string models including the Lubinski-Paslay-Cernocky bending stress magnification factor. Three field case studies are presented for horizontal wells. One well is short radius with dogleg severity over 50 deg/100 ft and two wells are unconventional shale wells with doglegs up to 15 deg/100 ft. Predictions for surface torque and drag up and down for the new dynamic stiff string model are compared to the static stiff and soft string models. In many situations modeled the top-level results for surface torque and drag up/down are close enough for all six models to be within the uncertainty range associated with the commonly used, lumped-parameter friction factor. However, some major differences in hook load for sliding and slack off operations are observed, which are shown to be caused by differences in location and magnitude of contact force between the drillstring and wellbore. Further, significantly lower surface torque is predicted by the new dynamic stiff string compared to other models for one case history because of lower contact forces in the vertical section of the well. In fact, the key finding of this paper is that major differences are observed for contact forces for the new dynamic stiff string model compared to all five other models, including the two static stiff string models. These differences in contact forces are most significant when the drillstring has helically buckled or when doglegs in the wellbore are high. Contact forces have a large impact on local stress behavior, which is important for predictions of casing and drillpipe wear, drillstring fatigue, and failure points in the drillstring. Although several previous papers have published stiff string models there is no industry standard formulation. The main problem holding back the development of an industry standard stiff model is perhaps the complexity of the numerical algorithm and substantial running time. To address this problem, some previous stiff string models account for bending stiffness of the drillstring but not for radial clearance while others appear to model only portions of the drillstring as stiff. The new stiff string model accounts for bending stiffness and radial clearance for the entire drillstring while still giving reasonable computational times. For stiff string models the advantage of using a dynamic approach to solve the steady state position of the drillstring is mainly related to superior convergence of the numerical algorithm compared to static stiff string models because calculation of contact points is faster.
Read moreInformatics in Radiology: Use of CouchDB for Document-based Storage of DICOM Objects
Picture archiving and communication systems traditionally have depended on schema-based Structured Query Language (SQL) databases for imaging data management. To optimize database size and performance, many such systems store a reduced set of Digital Imaging and Communications in Medicine (DICOM) metadata, discarding informational content that might be needed in the future. As an alternative to traditional database systems, document-based key-value stores recently have gained popularity. These systems store documents containing key-value pairs that facilitate data searches without predefined schemas. Document-based key-value stores are especially suited to archive DICOM objects because DICOM metadata are highly heterogeneous collections of tag-value pairs conveying specific information about imaging modalities, acquisition protocols, and vendor-supported postprocessing options. The authors used an open-source document-based database management system (Apache CouchDB) to create and test two such databases; CouchDB was selected for its overall ease of use, capability for managing attachments, and reliance on HTTP and Representational State Transfer standards for accessing and retrieving data. A large database was created first in which the DICOM metadata from 5880 anonymized magnetic resonance imaging studies (1,949,753 images) were loaded by using a Ruby script. To provide the usual DICOM query functionality, several predefined "views" (standard queries) were created by using JavaScript. For performance comparison, the same queries were executed in both the CouchDB database and a SQL-based DICOM archive. The capabilities of CouchDB for attachment management and database replication were separately assessed in tests of a similar, smaller database. Results showed that CouchDB allowed efficient storage and interrogation of all DICOM objects; with the use of information retrieval algorithms such as map-reduce, all the DICOM metadata stored in the large database were searchable with only a minimal increase in retrieval time over that with the traditional database management system. Results also indicated possible uses for document-based databases in data mining applications such as dose monitoring, quality assurance, and protocol optimization.
Read moreDatasets
When software and hardware processes cause delay between an input and an output, consequences can be both harmful and annoying. In games, this type of delay can cause actions to lag behind a player's inputs. Studies on delayed game actions show negative impact on both player performance and quality of experience. Further research could expand upon this knowledge with more robust data modeling and analysis, as well as a wider range of actions. This paper describes publicly available datasets from four user studies on the effects of delay on the fundamental game action of selecting a moving target with a pointing device. They include performance data, such as time to selection, and demographic data, such as age and gaming experience. Example analysis illustrating the use of the datasets is shown, including comparison of pointing devices, demographic analysis with performance, and analytic modeling.
Read more